Fixed up the block self-test
This commit is contained in:
@@ -15,7 +15,7 @@ class block_admin_bookmarks extends block_base {
|
||||
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) {
|
||||
return array('all' => true);
|
||||
} else {
|
||||
return array('all' => false);
|
||||
return array('site' => true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class block_admin_tree extends block_base {
|
||||
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) {
|
||||
return array('site' => true, 'admin' => true);
|
||||
} else {
|
||||
return array('all' => false);
|
||||
return array('site' => true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ class block_mnet_hosts extends block_list {
|
||||
if (has_capability('moodle/site:mnetlogintoremote', get_context_instance(CONTEXT_SYSTEM), NULL, false)) {
|
||||
return array('all' => true, 'mod' => false);
|
||||
} else {
|
||||
return array('all' => false);
|
||||
return array('site' => true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user