-
Bug
-
Resolution: Fixed
-
Minor
-
4.3
-
1
-
HQ2024 Sprint I1.1 Moppies
Steps to reproduce it
- Login as admin.
- Go to Site administration > Advanced features and enable "Allow stealth activities".
- Create a course.
- Enrol editing teacher (t1).
- Add a module to the course and change availability to Hidden.
- Edit Permissions and remove the following capability for the Teacher: "moodle/course:activityvisibility"
- Login as editing teacher (t1).
- Enable Edit mode.
- Using the " Hidden from students" badge button below the activity name, change the availability to "Make available but don't show on course page".
Expected result
This badge button shouldn't let users change availability (because they don't have the right capability).
Current result
The following error is displayed: "Sorry, but you do not currently have permissions to do that (Hide/show activities)."