| Summary: | Admin is able to access restricted function | ||
|---|---|---|---|
| Product: | 2023 CS3343 Group 20 System | Reporter: | mhlee64-c |
| Component: | Admin | Assignee: | chlam368-c |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | hfwong56-c |
| Priority: | --- | ||
| Version: | unspecified | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Attachments: | Test case for admin access right bug | ||
Created attachment 158 [details] Test case for admin access right bug Admin role in the system should only have access to create user and change account password, but it unexpectedly can access function like create medicine and view medicine. -------------------------------------------------------------------------------- Welcome to CMS! ============================================== Login =============================================== Please enter your staff ID: @ Please enter your password: @ ============================================ Main Menu ============================================= Login as [Admin] Admin | @ | 0. Patient Mangement 1. Appointment Management 2. MedRecord Management 3. Medicine Management 4. Admin 5. Logoff Please select a function: 3 ======================================= Medicine Management ======================================== 0. View Medicine 1. Create Medicine 2. Edit Medicine Please select a function: 1 ========================================= Create Medicine ========================================== Please enter the medicine name: TestMed Please enter the cost: $100 Please enter the unit: 2mg Please enter the stock: 3 Medinine created successfully. ============================================ Main Menu ============================================= Login as [Admin] Admin | @ | 0. Patient Mangement 1. Appointment Management 2. MedRecord Management 3. Medicine Management 4. Admin 5. Logoff Please select a function: 3 ======================================= Medicine Management ======================================== 0. View Medicine 1. Create Medicine 2. Edit Medicine Please select a function: 0 ========================================== View Medicine =========================================== 0. [Medicine] m1 | $:100.0/tab | Stock: 2 1. [Medicine] m2 | $:100.0/10mg | Stock: 2 2. [Medicine] TestMed | $:100.0/2mg | Stock: 3