]> wagnertech.de Git - timetracker.git/blobdiff - mobile/index.php
Finished improving access checks by providing separate error msg for disabled features.
[timetracker.git] / mobile / index.php
index 1c7cf231ccc4e62414ffc58ca8785904cba36fbc..9b2ed530fb8878834602ef21e45a10443a7e0118 100644 (file)
@@ -30,7 +30,7 @@ require_once('../initialize.php');
 
 // Redirects for admin and client roles.
 if ($auth->isAuthenticated()) {
-  if ($user->isAdmin()) {
+  if ($user->can('administer_site')) {
     header('Location: ../admin_teams.php');
     exit();
   } elseif ($user->isClient()) {