Bugfix: Edit user: Show groups list if angel has no rights

This commit is contained in:
Igor Scheller 2018-12-25 14:46:14 +01:00
parent d214525e24
commit 31d9efb2b8
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ function admin_user()
$his_highest_group = $his_highest_group['group_id']; $his_highest_group = $his_highest_group['group_id'];
} }
if ($user_id != $user->id && $my_highest_group <= $his_highest_group) { if ($user_id != $user->id && ($my_highest_group <= $his_highest_group || is_null($his_highest_group))) {
$html .= 'Hier kannst Du die Benutzergruppen des Engels festlegen:<form action="' $html .= 'Hier kannst Du die Benutzergruppen des Engels festlegen:<form action="'
. page_link_to('admin_user', ['action' => 'save_groups', 'id' => $user_id]) . page_link_to('admin_user', ['action' => 'save_groups', 'id' => $user_id])
. '" method="post">' . "\n"; . '" method="post">' . "\n";