]> git.mjollnir.org Git - moodle.git/commitdiff
accesslib: MDL-18620 - followup - remove the one case of external code using one...
authortjhunt <tjhunt>
Mon, 23 Mar 2009 04:02:28 +0000 (04:02 +0000)
committertjhunt <tjhunt>
Mon, 23 Mar 2009 04:02:28 +0000 (04:02 +0000)
admin/roles/explain.php

index 021c3d1812c0ca3c951ca767034a7c9eb9aa0134..64e7bc65b1876aa11b2c4eae700b6a423b825f8b 100755 (executable)
@@ -90,8 +90,7 @@ if ($userid == 0) {
     $accessdata = get_role_access($guestrole->id);
     $accessdata['ra'][$systempath] = array($guestrole->id);
 } else {
-    load_user_accessdata($userid);
-    $accessdata = $ACCESS[$userid];
+    $accessdata = load_user_accessdata($userid);
 }
 if ($context->contextlevel > CONTEXT_COURSE && !path_inaccessdata($context->path, $accessdata)) {
     load_subcontext($userid, $context, $accessdata);