X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Findex.php;h=fa3f04c469a2acc7a790899bc04c7b29a74a504a;hb=ce2df23479c88d1bc9db04a68164af3feb6346e1;hp=a28366547185fe5aed557c4676f257b0fc201c39;hpb=3705caa8680d82736ab1a1d21e8829bed1226341;p=timetracker.git diff --git a/mobile/index.php b/mobile/index.php index a2836654..fa3f04c4 100644 --- a/mobile/index.php +++ b/mobile/index.php @@ -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(); }