MDL-61163 mod_wiki: guests should be able to view frontpage modules

When wiki is added to the frontpage and the guest role has capability to view
wiki, users should not be required to log in.
This commit is contained in:
Marina Glancy
2018-03-29 11:11:48 +08:00
parent c6956595f7
commit c8d5e54cd1
9 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ if ($compare >= $comparewith) {
print_error('cannotcomparenewerversion', 'wiki');
}
require_login($course, true, $cm);
require_course_login($course, true, $cm);
if (!wiki_user_can_view($subwiki, $wiki)) {
print_error('cannotviewpage', 'wiki');