Skip to content

Commit

Permalink
Merged block self-test fix from stable
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Mar 30, 2007
1 parent 431fe2f commit 1de5862
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blocks/admin_bookmarks/block_admin_bookmarks.php
Expand Up @@ -15,7 +15,7 @@ function applicable_formats() {
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) {
return array('all' => true);
} else {
return array('all' => false);
return array('site' => true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion blocks/admin_tree/block_admin_tree.php
Expand Up @@ -25,7 +25,7 @@ function applicable_formats() {
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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion blocks/mnet_hosts/block_mnet_hosts.php
Expand Up @@ -14,7 +14,7 @@ function applicable_formats() {
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);
}
}

Expand Down

0 comments on commit 1de5862

Please sign in to comment.