As a system
I need to verify that the account is an admin account
So that admin-related functions cannot be used by any other account type
Details and Assumptions
Admin-only features (e.g., approving events, deleting comments) must be restricted to accounts with admin privileges.
Non-admin accounts will be denied access to admin functionality
Acceptance Criteria
Scenario: Accessing admin function with an admin account
Given an admin user is logged in
When they try to access an admin-only function
Then the system verifies the account is an admin
And grants access to the admin function
Scenario: Accessing admin function with a non-admin account
Given a non-admin user is logged in
When they try to access an admin-only function
Then the system checks the account type
And denies access to the admin function
And displays an error message saying "Admin privileges required"
As a system I need to verify that the account is an admin account So that admin-related functions cannot be used by any other account type
Details and Assumptions
Acceptance Criteria