From 24abb2eba45f7a4bff7632cd887f178f8e853c69 Mon Sep 17 00:00:00 2001
From: Martin Langhoff <martin@catalyst.net.nz>
Date: Thu, 22 Nov 2007 20:16:36 +1300
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 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/user/index.php b/user/index.php
index 645196d..d21eea4 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;
-- 
1.5.3.5.1815.g9445b

