Started to replace canManageTeam calls with right checks.
[timetracker.git] / WEB-INF / lib / ttUser.class.php
index 2f7ff95..dd42a64 100644 (file)
@@ -154,7 +154,7 @@ class ttUser {
 
   // 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.