Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.5, 3.1.1, 3.2
-
MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
MDL-55667-master-participantslink -
Description
We experienced this on moodle.org:
- Log in to moodle.org as an ordinary user
- Go to your dashboard or profile page and expand Site pages then click the link Participants i.e. https://moodle.org/user/index.php?id=1
- Observe error 'Sorry, but you do not currently have permissions to do that (View participants)'
Expected result:
Participants link is not shown to users who do not have the appropriate permission
To reproduce this on any aite, you just need to set "Default frontpage role" to "Student" (like we have on moodle.org) rather than "Authenticated user of front page" (like we have on all other sites where we can't see it happening).
The reason for this misbehaviour is a bug in lib/navigationlib.php