]> wagnertech.de Git - timetracker.git/blobdiff - index.php
posaune
[timetracker.git] / index.php
index 610794e004e124c7bbace34fac1131422b7bc345..cabc7060ba117710a7a07d632b6d7cf113feea27 100644 (file)
--- a/index.php
+++ b/index.php
@@ -30,11 +30,10 @@ require_once('initialize.php');
 
 // Redirects for admin and client roles.
 if ($auth->isAuthenticated()) {
 
 // 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();
     exit();
-  }
-  else if ($user->isClient()) {
+  } elseif ($user->isClient()) {
     header('Location: reports.php');
     exit();
   }
     header('Location: reports.php');
     exit();
   }