Skip to content
Snippets Groups Projects
Verified Commit a5cce9cc authored by Damien's avatar Damien
Browse files

FIX usergroups enabled

parent 361a0ade
No related branches found
No related tags found
No related merge requests found
...@@ -190,7 +190,7 @@ class users_controler extends ObjectControler implements ObjectControlerIF ...@@ -190,7 +190,7 @@ class users_controler extends ObjectControler implements ObjectControlerIF
$func = new functions(); $func = new functions();
$query = 'select uc.group_id, uc.primary_group, uc.role from ' $query = 'select uc.group_id, uc.primary_group, uc.role from '
. USERGROUP_CONTENT_TABLE . ' uc, ' . USERGROUPS_TABLE . USERGROUP_CONTENT_TABLE . ' uc, ' . USERGROUPS_TABLE
. " u where uc.user_id = ? and u.enabled = 'Y' and uc.group_id = u.group_id "; . " u where uc.user_id = ? and uc.group_id = u.group_id ";
try { try {
$stmt = self::$db->query($query, array($userId)); $stmt = self::$db->query($query, array($userId));
} catch (Exception $e){ } catch (Exception $e){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment