Skip to content

Commit

Permalink
Merge branch 'MDL-30518' of git://github.com/mackensen/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Dec 8, 2011
2 parents 4bd1fc7 + 59c1a98 commit 9c6b40c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tag/coursetags_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}

// Permissions
$sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID);
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
require_login($course->id);
$canedit = has_capability('moodle/tag:create', $sitecontext);

Expand Down
2 changes: 1 addition & 1 deletion user/profile/field/checkbox/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function edit_field_add(&$mform) {
$checkbox->setChecked(true);
}
$mform->setType($this->inputname, PARAM_BOOL);
if ($this->is_required() and !has_capability('moodle/user:update', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
if ($this->is_required() and !has_capability('moodle/user:update', get_context_instance(CONTEXT_SYSTEM))) {
$mform->addRule($this->inputname, get_string('required'), 'nonzero', null, 'client');
}
}
Expand Down

0 comments on commit 9c6b40c

Please sign in to comment.