From 1377ede75daade1481c1210a7c578369d0dae3ec Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Fri, 23 Nov 2007 00:23:10 +0000 Subject: [PATCH] user/index: Fix Participants page for sitecourse - MDL-12311 Groups/groupings don't seem to map normally through enrolments as you would expect with site. Disable for sitecourse. --- user/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/index.php b/user/index.php index 8293328951..43f2aeda2a 100644 --- a/user/index.php +++ b/user/index.php @@ -274,8 +274,8 @@ // and $USER can enrol/unenrol, display extra enrolments & groups information. // (will take 1 extra DB query - 2 on Oracle) // - if ($fullmode === false && - $perpage <= DEFAULT_PAGE_SIZE && has_capability('moodle/role:assign',$context)) { + if ($fullmode === false && $course->id != SITEID + && $perpage <= DEFAULT_PAGE_SIZE && has_capability('moodle/role:assign',$context)) { $showenroldata = true; } else { $showenroldata = false; -- 2.39.5