Skip to content

Commit

Permalink
Changed CONTEXT_SITE to CONTEXT_SYSTEM MDL-6506
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 26, 2006
1 parent 9c7f278 commit 329f40b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion course/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

/// Editing functions

if (has_capablity('moodle/course:visibility', get_context_instance(CONTEXT_SITE, SITEID))) {
if (has_capablity('moodle/course:visibility', get_context_instance(CONTEXT_SYSTEM, SITEID))) {

/// Hide or show a course

Expand Down
2 changes: 1 addition & 1 deletion userpix/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
require_login();

/// Remove the following three lines if you want everyone to access it
require_capability('moodle/site:config', get_context_instance(CONTEXT_SITE, SITEID));
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));

if (!$users = get_records("user", "picture", "1", "lastaccess DESC", "id,firstname,lastname")) {
error("no users!");
Expand Down
2 changes: 1 addition & 1 deletion userpix/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

require_login();

require_capability('moodle/site:config', get_context_instance(CONTEXT_SITE, SITEID));
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID));

if (!$users = get_records("user", "picture", "1", "lastaccess DESC", "id,firstname,lastname")) {
error("no users!");
Expand Down

0 comments on commit 329f40b

Please sign in to comment.