Hide
There are 3 different test scenarios that needs to be used.
Pre-requirements
- Create test user and allocate it a Manager role (Users -> Permissions ->Assign system roles)
- Create category CAT1 at top level
- Within CAT1 create categories CAT11 and CAT12
- Within CAT11 create course CR1
No permission to delete ("Manage categories" prohibited)
In this scenario user does not have category management permission and therefore not able to delete category.
Change permissions
- As admin, navigate to "Manage courses and categories"
- Open "Permissions" for CAT1, find "Manage categories" and delete "Manager" role against it.
Test
- Login as test user (you may do it in incognito window or in a different browser not to re-login each time we need to change permissions as admin)
- Navigate to "Manage courses and categories"
- Observe CAT1 category does not have "Delete" option in the action menu.
- Observe "Miscellaneous" category has "Delete" option in the action menu.
Restore permissions
- As admin, navigate to "Manage courses and categories"
- Open "Permissions" for CAT1, find "Manage categories" and add "Manager" role permission.
No permission to delete ("Delete course" and "Create course" prohibited)
In this scenario user does not have course delete permission and not able to create course in other categories either, therefore not able to delete category CAT11, but able to delete empty category CAT12.
Change permissions
- As admin, navigate to "Manage courses and categories"
- Open "Permissions" for CAT11, find "Delete courses" and delete "Manager" role against it.
- Open "Permissions" for CAT1, find "Create courses" and delete "Manager" role against it.
- Open "Permissions" for "Miscellaneous", find "Create courses" and delete "Manager" role against it.
Test
- Login as test user
- Navigate to "Manage courses and categories"
- Observe CAT11 category does not have "Delete" option in the action menu.
- Observe CAT12 category has "Delete" option in the action menu.
Restore permissions
- As admin, navigate to "Manage courses and categories"
- Open "Permissions" for CAT11, find "Delete courses" and add "Manager" role permission.
- Open "Permissions" for CAT1, find "Create courses" and add "Manager" role permission.
- Open "Permissions" for "Miscellaneous", find "Create courses" and add "Manager" role permission.
Permission to delete which was not available before this patch ("Delete course" prohibited, but "Create course" is permitted in another category)
In this scenario user does not have course delete permission, but able to create course in other categories, therefore user is able to delete category CAT11 when its content will be moved on deletion.
Change permissions
- As admin, navigate to "Manage courses and categories"
- Open "Permissions" for CAT11, find "Delete courses" and delete "Manager" role against it.
Test
- Login as test user (if you are using incognito window or a different browser, you may actually need to re-login if Delete option at step 3 does not appear for you)
- Navigate to "Manage courses and categories"
- Observe CAT11 category has "Delete" option in the action menu, click on "Delete"
- Category deletion interface is presented.
- Observe "What to do" has only one option "Move contents to another category" (shown as text)
- Observe "Move into" has a selection of all remaining categories that exist in the system.
- Select "CAT1 / CAT12" in the "Move into" select element, click on "Delete"
- Observe that CAT11 has been deleted and CR1 course was moved into CAT12.
Restore permissions
- Permission restoring is not required as CAT11 was deleted.
Show
There are 3 different test scenarios that needs to be used.
Pre-requirements
Create test user and allocate it a Manager role (Users -> Permissions ->Assign system roles)
Create category CAT1 at top level
Within CAT1 create categories CAT11 and CAT12
Within CAT11 create course CR1
No permission to delete ("Manage categories" prohibited)
In this scenario user does not have category management permission and therefore not able to delete category.
Change permissions
As admin, navigate to "Manage courses and categories"
Open "Permissions" for CAT1, find "Manage categories" and delete "Manager" role against it.
Test
Login as test user (you may do it in incognito window or in a different browser not to re-login each time we need to change permissions as admin)
Navigate to "Manage courses and categories"
Observe CAT1 category does not have "Delete" option in the action menu.
Observe "Miscellaneous" category has "Delete" option in the action menu.
Restore permissions
As admin, navigate to "Manage courses and categories"
Open "Permissions" for CAT1, find "Manage categories" and add "Manager" role permission.
No permission to delete ("Delete course" and "Create course" prohibited)
In this scenario user does not have course delete permission and not able to create course in other categories either, therefore not able to delete category CAT11, but able to delete empty category CAT12.
Change permissions
As admin, navigate to "Manage courses and categories"
Open "Permissions" for CAT11, find "Delete courses" and delete "Manager" role against it.
Open "Permissions" for CAT1, find "Create courses" and delete "Manager" role against it.
Open "Permissions" for "Miscellaneous", find "Create courses" and delete "Manager" role against it.
Test
Login as test user
Navigate to "Manage courses and categories"
Observe CAT11 category does not have "Delete" option in the action menu.
Observe CAT12 category has "Delete" option in the action menu.
Restore permissions
As admin, navigate to "Manage courses and categories"
Open "Permissions" for CAT11, find "Delete courses" and add "Manager" role permission.
Open "Permissions" for CAT1, find "Create courses" and add "Manager" role permission.
Open "Permissions" for "Miscellaneous", find "Create courses" and add "Manager" role permission.
Permission to delete which was not available before this patch ("Delete course" prohibited, but "Create course" is permitted in another category)
In this scenario user does not have course delete permission, but able to create course in other categories, therefore user is able to delete category CAT11 when its content will be moved on deletion.
Change permissions
As admin, navigate to "Manage courses and categories"
Open "Permissions" for CAT11, find "Delete courses" and delete "Manager" role against it.
Test
Login as test user (if you are using incognito window or a different browser, you may actually need to re-login if Delete option at step 3 does not appear for you)
Navigate to "Manage courses and categories"
Observe CAT11 category has "Delete" option in the action menu, click on "Delete"
Category deletion interface is presented.
Observe "What to do" has only one option "Move contents to another category" (shown as text)
Observe "Move into" has a selection of all remaining categories that exist in the system.
Select "CAT1 / CAT12" in the "Move into" select element, click on "Delete"
Observe that CAT11 has been deleted and CR1 course was moved into CAT12.
Restore permissions
Permission restoring is not required as CAT11 was deleted.