MDL-39990 wiki: more detailed validation of view/edit access rights
This commit is contained in:
committed by
Dan Poltawski
parent
f504e63daa
commit
3a7b9b76c2
@@ -68,6 +68,10 @@ if ($compare >= $comparewith) {
|
||||
|
||||
require_login($course, true, $cm);
|
||||
|
||||
if (!wiki_user_can_view($subwiki, $wiki)) {
|
||||
print_error('cannotviewpage', 'wiki');
|
||||
}
|
||||
|
||||
$wikipage = new page_wiki_diff($wiki, $subwiki, $cm);
|
||||
|
||||
$wikipage->set_page($page);
|
||||
|
||||
Reference in New Issue
Block a user