X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/4dcb88a76a3de466ee6116ae0852f53ba2b259a5..030d2c3ffbf8229cc945427e9e9f7704226effe1:/role_edit.php 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);