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:12:41 +08:00
parent 2c89620ad0
commit 33e486cad6
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');