X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=role_edit.php;h=f5f3762b3221ba24177fe9bc1c050ca4e1d4c97a;hb=9339284bfdaba5a0c2a4e3c9fa000194a508d0bf;hp=3eb7696b0b3851ef4ef41f7d7868c86a170e4bb2;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git diff --git a/role_edit.php b/role_edit.php index 3eb7696b..f5f3762b 100644 --- a/role_edit.php +++ b/role_edit.php @@ -32,7 +32,7 @@ import('ttTeamHelper'); // TODO: remove this? import('ttTaskHelper'); // TODO: remove this? import('ttRoleHelper'); -// Access check. +// Access checks. if (!ttAccessAllowed('manage_roles')) { header('Location: access_denied.php'); exit(); @@ -43,6 +43,7 @@ if (!$role) { header('Location: access_denied.php'); exit(); } + $assigned_rights = explode(',', $role['rights']); $available_rights = array_diff($user->rights, $assigned_rights);