Refactoring. Moved week_menu config option to plugin config.
[timetracker.git] / mobile / index.php
index a283665..fa3f04c 100644 (file)
@@ -30,11 +30,10 @@ require_once('../initialize.php');
 
 // Redirects for admin and client roles.
 if ($auth->isAuthenticated()) {
-  if ($user->isAdmin()) {
-    header('Location: ../admin_teams.php');
+  if ($user->can('administer_site')) {
+    header('Location: ../admin_groups.php');
     exit();
-  }
-  else if ($user->isClient()) {
+  } elseif ($user->isClient()) {
     header('Location: ../reports.php');
     exit();
   }