diff options
author | Philip Häusler <msquare@notrademark.de> | 2015-08-13 11:46:06 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2015-08-13 11:46:06 +0200 |
commit | 1c9a3fa89e514743cbe69c27688f68c4e8243716 (patch) | |
tree | 1136a46d4da17ee62fc8a4e42a0f5107f7f5abef /includes | |
parent | 723961c19e030903a0fb863a95cd5a0a0520d89f (diff) |
fix group rights management
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/admin_user.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php index dd930941..ee244925 100644 --- a/includes/pages/admin_user.php +++ b/includes/pages/admin_user.php @@ -93,11 +93,11 @@ function admin_user() { $html .= "<hr />"; - $my_highest_group = sql_select("SELECT * FROM `UserGroups` WHERE `uid`='" . sql_escape($user['UID']) . "' ORDER BY `uid` LIMIT 1"); + $my_highest_group = sql_select("SELECT * FROM `UserGroups` WHERE `uid`='" . sql_escape($user['UID']) . "' ORDER BY `group_id` LIMIT 1"); if (count($my_highest_group) > 0) $my_highest_group = $my_highest_group[0]['group_id']; - $his_highest_group = sql_select("SELECT * FROM `UserGroups` WHERE `uid`='" . sql_escape($id) . "' ORDER BY `uid` LIMIT 1"); + $his_highest_group = sql_select("SELECT * FROM `UserGroups` WHERE `uid`='" . sql_escape($id) . "' ORDER BY `group_id` LIMIT 1"); if (count($his_highest_group) > 0) $his_highest_group = $his_highest_group[0]['group_id']; |