User Story:
As a developer, I want a reusable authorization helper so that creator-only functions are consistently protected.
Acceptance Criteria:
fn require_creator(env: &Env) helper function
- Reads creator from storage
- Calls
creator.require_auth()
- Panics with
Error::Unauthorized if caller is not creator
- Used in all creator-only functions
User Story:
As a developer, I want a reusable authorization helper so that creator-only functions are consistently protected.
Acceptance Criteria:
fn require_creator(env: &Env)helper functioncreator.require_auth()Error::Unauthorizedif caller is not creator