-
Bug
-
Resolution: Fixed
-
Minor
-
3.4
-
MOODLE_34_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
wip-
MDL-61163-master -
If wiki is created on the frontpage and capability mod/wiki:viewpage is given to guests, guests are still not able to view wiki without pressing "Log in as a guest".
This is different from the situation with mod_forum and mod_resource - if relevant view capabilitiy is given to the guests they can view the resources.
This is just a matter of replacing require_login() with require_course_login()
During development I noticed two more bugs: 1. Capability to view wiki is allowed for guests but not allowed for authenticated users on a frontpage, meaning that guests are able to see the module but as soon as they login they no longer can see it
2. When displaying the list of modules link to the wiki is shown even when user does not have capability to view it. When user clicks on it an error is displayed.