From d243cd17c58d5d297d144b086fe8ae2e7acef266 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 2 Mar 2007 10:10:52 +0000 Subject: [PATCH] Commenting this out for now for performance reasons, should be fixed soon! See MDL-8385 --- lib/accesslib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index 02b41f218d1..2d469f8c046 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -72,7 +72,7 @@ function load_guest_role($context=NULL) { } } - $searchcontexts = get_child_contexts($context); + $searchcontexts = array(); // get_child_contexts($context); SEE MDL-8385 array_push($searchcontexts, $context->id); foreach ($searchcontexts as $scid) { @@ -3418,4 +3418,4 @@ function user_has_role_assignment($userid, $roleid, $contextid=0) { return record_exists('role_assignments', 'userid', $userid, 'roleid', $roleid); } } -?> \ No newline at end of file +?>