mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
Merged block self-test fix from stable
This commit is contained in:
parent
431fe2f0fd
commit
1de586216f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user