Fixed up the block self-test

This commit is contained in:
moodler
2007-03-30 18:00:47 +00:00
parent e3db7108a8
commit 0681430f0f
3 changed files with 3 additions and 3 deletions
@@ -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);
}
}
+1 -1
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);
}
}
+1 -1
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);
}
}