projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved getUserDetails to not return info for deleted users.
[timetracker.git]
/
role_edit.php
diff --git
a/role_edit.php
b/role_edit.php
index
3eb7696
..
f5f3762
100644
(file)
--- a/
role_edit.php
+++ b/
role_edit.php
@@
-32,7
+32,7
@@
import('ttTeamHelper'); // TODO: remove this?
import('ttTaskHelper'); // TODO: remove this?
import('ttRoleHelper');
import('ttTaskHelper'); // TODO: remove this?
import('ttRoleHelper');
-// Access check.
+// Access check
s
.
if (!ttAccessAllowed('manage_roles')) {
header('Location: access_denied.php');
exit();
if (!ttAccessAllowed('manage_roles')) {
header('Location: access_denied.php');
exit();
@@
-43,6
+43,7
@@
if (!$role) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
+
$assigned_rights = explode(',', $role['rights']);
$available_rights = array_diff($user->rights, $assigned_rights);
$assigned_rights = explode(',', $role['rights']);
$available_rights = array_diff($user->rights, $assigned_rights);