projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some more refactoring.
[timetracker.git]
/
role_add.php
diff --git
a/role_add.php
b/role_add.php
index
b44304b
..
7a01cfc
100644
(file)
--- a/
role_add.php
+++ b/
role_add.php
@@
-32,7
+32,7
@@
import('ttTeamHelper');
import('ttRoleHelper');
// Access check.
import('ttRoleHelper');
// Access check.
-if (!ttAccess
Check(right_manage_team
)) {
+if (!ttAccess
Allowed('manage_roles'
)) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
@@
-67,7
+67,7
@@
if ($request->isPost()) {
'name' => $cl_name,
'rank' => $cl_rank,
'description' => $cl_description,
'name' => $cl_name,
'rank' => $cl_rank,
'description' => $cl_description,
- 'rights' => '
data_entry,view_own_data
,manage_own_settings,view_users', // Default user rights.
+ 'rights' => '
track_own_time,track_own_expenses,view_own_reports,view_own_charts
,manage_own_settings,view_users', // Default user rights.
'status' => ACTIVE))) {
header('Location: roles.php');
exit();
'status' => ACTIVE))) {
header('Location: roles.php');
exit();