projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started to replace canManageTeam calls with right checks.
[timetracker.git]
/
WEB-INF
/
lib
/
ttUser.class.php
diff --git
a/WEB-INF/lib/ttUser.class.php
b/WEB-INF/lib/ttUser.class.php
index
2f7ff95
..
dd42a64
100644
(file)
--- a/
WEB-INF/lib/ttUser.class.php
+++ b/
WEB-INF/lib/ttUser.class.php
@@
-154,7
+154,7
@@
class ttUser {
// isAdmin - determines whether current user is admin (has right_administer_site).
function isAdmin() {
// isAdmin - determines whether current user is admin (has right_administer_site).
function isAdmin() {
- return
(right_administer_site & $this->role
);
+ return
$this->can('administer_site'
);
}
// isManager - determines whether current user is team manager.
}
// isManager - determines whether current user is team manager.