-
Bug
-
Resolution: Fixed
-
Minor
-
4.3 regressions, 4.3.4, 4.4.1
Description:
When selecting users from the Participants page to delete their course enrollments, the user is presented with a confirmation screen listing the users whose enrollment will be deleted. At the top of this page a message appears:
User "<insert logged in admin's fullname>" was removed from the selection.
|
This is despite the fact that the logged in admin user does not have an enrollment record in the course and thus cannot actually be selected.
Steps to replicate:
- Access a test course
- Ensure there is at least one user enrolled in the course via Manual enrolments who isn't the admin currently logged in
- Go to the Participants>Enrolled users page
- Check the box next to the user's enrollment
- Click 'With selected users...' and select 'Delete selected user enrolments' (under Manual enrolments)
- Observe the confirmation screen that appears (/user/action_redir.php)
Observed result:
A message appears at the top of the page for the logged in admin user, who does not have an enrolment record in the course:
'User "<insert fullname of logged in admin>" was removed from the selection.'
|
Expected result:
No message appears for the logged-in admin, unless they have an enrolment record in the course.
Other notes:
This is cosmetic but may confuse administrators slightly. The functionality to delete user enrolments seems to work as expected otherwise.
- is a regression caused by
-
MDL-75802 A (teacher) user should not be able to unenrol themself via bulk unenrolment
- Closed