Permalink
Browse files

MDL-7250 typo ARGH sorry.

  • Loading branch information...
1 parent d0f6aa9 commit 6266a81cf733df8b1d0b48a3750e95c1e0d7495e sam_marshall committed Oct 27, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/accesslib.php
View
@@ -128,7 +128,7 @@ function load_defaultuser_role() {
}
if ($capabilities = get_records_select('role_capabilities',
- "roleid = $CFG->defaultuserroleid AND contextid = $sitecontext->id AND capability <> 0")) {
+ "roleid = $CFG->defaultuserroleid AND contextid = $sitecontext->id AND permission <> 0")) {
foreach ($capabilities as $capability) {
if (!isset($USER->capabilities[$sitecontext->id][$capability->capability])) { // Don't overwrite
$USER->capabilities[$sitecontext->id][$capability->capability] = $capability->permission;

0 comments on commit 6266a81

Please sign in to comment.