user/filters MDL-25657 Obsolete reference to timestart
authorDan Poltawski <dan.poltawski@luns.net.uk>
Mon, 3 Jan 2011 18:06:23 +0000 (18:06 +0000)
committerDan Poltawski <dan.poltawski@luns.net.uk>
Mon, 3 Jan 2011 18:08:30 +0000 (18:08 +0000)
user/filters/globalrole.php

index 6f07bda..2721fdb 100644 (file)
@@ -66,8 +66,7 @@ class user_filter_globalrole extends user_filter_type {
 
         $sql = "id IN (SELECT userid
                          FROM {role_assignments} a
-                        WHERE a.contextid=".SYSCONTEXTID." AND a.roleid=$value AND a.timestart<$timenow
-                              AND (a.timeend=0 OR a.timeend>$timenow))";
+                        WHERE a.contextid=".SYSCONTEXTID." AND a.roleid=$value)";
         return array($sql, array());
     }