mmanning95 / ACME26WCV-Cpts421

Capstone project for Cpts 421 in conjunction with Whitman county's veteran service officer
0 stars 0 forks source link

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 #30

Open mmanning95 opened 2 days ago

mmanning95 commented 2 days ago

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


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"