]> git.mjollnir.org Git - moodle.git/commitdiff
merged fix for MDL-7819, admin still showing up in participants list
authortoyomoyo <toyomoyo>
Fri, 8 Dec 2006 04:28:58 +0000 (04:28 +0000)
committertoyomoyo <toyomoyo>
Fri, 8 Dec 2006 04:28:58 +0000 (04:28 +0000)
user/index.php

index ba4f17a2e60ac28fd11ff310abe12e081e34d184..4ea5982093c52b34d5e664688ca6e878173011f0 100644 (file)
 
     // excluse users with these admin role assignments
     if ($doanythingroles) {
-        $adminroles = 'AND r.id NOT IN (';
+        $adminroles = 'AND r.roleid NOT IN (';
  
         foreach ($doanythingroles as $aroleid=>$role) {
             $adminroles .= "$aroleid,";