]> wagnertech.de Git - timetracker.git/blobdiff - role_edit.php
A bit more progress on refactoring access checks.
[timetracker.git] / role_edit.php
index 3eb7696b0b3851ef4ef41f7d7868c86a170e4bb2..f5f3762b3221ba24177fe9bc1c050ca4e1d4c97a 100644 (file)
@@ -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);