Skip to content

Access Control Modifiers #14

@Kaylahray

Description

@Kaylahray

User Story

As a Dev,
I want to a reusable way to check Admin permissions.

Description

A helper function for admin checks.


Files to Create/Edit

contracts/geev-core/src/
└── access.rs

Functional Requirements

  • Helper: fn check_admin(env).

Suggested Implementation

// IN FUNCTION: check_admin(env)

// 1. Load Admin key from Instance Storage.
// 2. Call 'admin.require_auth()'.
// 3. If Key missing or Auth fails, return explicit error.

Acceptance Criteria

  • Used in all admin functions.

Submission Guidelines

  • Branch: refactor/access-control

Metadata

Metadata

Assignees

No one assigned

    Labels

    @geevapp/app/wave2Moving to the app repo, as the contracts repo was not accepted for Drips Wave 2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions