-
Bug
-
Resolution: Fixed
-
Major
-
2.2.3
-
MOODLE_22_STABLE
-
MOODLE_22_STABLE, MOODLE_23_STABLE
-
Viewing help for scale displays an error for a user (teacher) with the capability.
Steps to Reproduce
- Click a rated forum that uses a scale as a student.
- Add a topic or post.
- As a teacher (Role = standard editingteacher) access same rated forum.
- Click info/help icon beside scale.
Expected - Scales help displays.
Actual - Error displays and reads:
Sorry, but you do not currently have permissions to do that (View scales)
More information about this error
Stack trace:
- line 691 of /lib/accesslib.php: required_capability_exception thrown
- line 50 of /course/scales.php: call to require_capability()
The cause:
This is caused because the scale is associated with courseid = 0 (a global scale) so the context is set to the site instead of the course that the user is currently in.
- Discovered while testing
-
MDL-36387 Use normal help bubble for ratings scale description instead of pop-up window
-
- Closed
-