X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Findex.php;h=fa3f04c469a2acc7a790899bc04c7b29a74a504a;hb=2646345bd9517aafb6b96bfe9cd795ee0f8c8e84;hp=1c7cf231ccc4e62414ffc58ca8785904cba36fbc;hpb=70272dc970919c348288bd09ff835f05e7538949;p=timetracker.git diff --git a/mobile/index.php b/mobile/index.php index 1c7cf231..fa3f04c4 100644 --- a/mobile/index.php +++ b/mobile/index.php @@ -30,8 +30,8 @@ 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(); } elseif ($user->isClient()) { header('Location: ../reports.php');