X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Findex.php;h=fa3f04c469a2acc7a790899bc04c7b29a74a504a;hb=237f5fae68a9410971ce1c4895a07fe2fa0fbd52;hp=de48595caa163fa20e990680fccf1c94f2f8cec6;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/mobile/index.php b/mobile/index.php index de48595c..fa3f04c4 100644 --- a/mobile/index.php +++ b/mobile/index.php @@ -30,13 +30,12 @@ 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(); + exit(); } } // Redirect to time.php or mobile/time.php for other roles.