An error is displayed when a user without permissions attempts to view a discussion in a forum.
Replication steps:
- Log in as admin
- Navigate to a course
- Edit the settings of the course and allow guest access
- Create a forum or use a course's News forum
- Create a post in the forum if there is not already one there
- While viewing the forum, in the Settings block under Forum administration, click Permissions
- Locate the permission "View discussions" and click the X next to Guest
- Log into the course as a Guest
- Go to the forum and attempt to view the discussion
- Note message displayed "You do not have the permission to view discussions in this forum"
- Click "continue" and the following error is shown.
Parameter missing
|
|
More information about this error
|
|
Debug info:
|
Error code: missingparameter
|
Stack trace:
|
line 467 of \lib\setuplib.php: moodle_exception thrown
|
line 86 of \mod\forum\view.php: call to print_error()
|