X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttUserHelper.class.php;h=e70f085b1c2794550f1f7d6507d660cd48e4fd46;hb=5a989e29aed5ad95f7b4a4082a2d88b924523968;hp=be46da3a26225bdc1af0c0a7382b8e93e45a73a9;hpb=7ea057af633d933eb5b39cceb112c3cc98c55a1d;p=timetracker.git diff --git a/WEB-INF/lib/ttUserHelper.class.php b/WEB-INF/lib/ttUserHelper.class.php index be46da3a..e70f085b 100644 --- a/WEB-INF/lib/ttUserHelper.class.php +++ b/WEB-INF/lib/ttUserHelper.class.php @@ -167,7 +167,7 @@ class ttUserHelper { // Prepare query parts. if (isset($fields['password'])) $pass_part = ', password = md5('.$mdb2->quote($fields['password']).')'; - if (right_assign_roles & $user->rights_mask) { + if (in_array('manage_users', $user->rights)) { if (isset($fields['role'])) { $role = (int) $fields['role']; $role_part = ", role = $role";