From 0163b1d09817a1e27b0630797236d55072fcbe75 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 28 Oct 2006 16:50:28 +0000 Subject: [PATCH] Adding one unmerged change from 17_STABLE. Was breaking some things... --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index 1f815899408..8fca9d3d0f2 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -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;