projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More work on roles revamp. Removed rights_mask from User class.
[timetracker.git]
/
mobile
/
user_edit.php
diff --git
a/mobile/user_edit.php
b/mobile/user_edit.php
index
dc43258
..
b353047
100644
(file)
--- a/
mobile/user_edit.php
+++ b/
mobile/user_edit.php
@@
-188,7
+188,7
@@
if ($request->isPost()) {
'status' => $cl_status,
'rate' => $cl_rate,
'projects' => $assigned_projects);
- if (
right_assign_roles & $user->rights_mask
) {
+ if (
in_array('manage_users', $user->rights)
) {
$fields['role'] = $cl_role;
$fields['client_id'] = $cl_client_id;
}