Merged block self-test fix from stable

This commit is contained in:
moodler 2007-03-30 18:04:34 +00:00
parent 431fe2f0fd
commit 1de586216f
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}