From 100602437f5efabbd91ab1762c30efdae2e84750 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 24 Aug 2019 11:58:19 +0200 Subject: [PATCH] User admin: Allow setting new groups if user has none assigned --- includes/pages/admin_user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php index b708b38b..0aa1f161 100644 --- a/includes/pages/admin_user.php +++ b/includes/pages/admin_user.php @@ -198,7 +198,7 @@ function admin_user() if ( count($my_highest_group) > 0 && ( - count($his_highest_group) == 0 + empty($his_highest_group) || ($my_highest_group['group_id'] <= $his_highest_group['group_id']) ) ) {