X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Findex.php;h=9b2ed530fb8878834602ef21e45a10443a7e0118;hb=3bf66d275fd148785cd2132dd5013c2960e81eac;hp=a28366547185fe5aed557c4676f257b0fc201c39;hpb=3705caa8680d82736ab1a1d21e8829bed1226341;p=timetracker.git diff --git a/mobile/index.php b/mobile/index.php index a2836654..9b2ed530 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()) { + if ($user->can('administer_site')) { header('Location: ../admin_teams.php'); exit(); - } - else if ($user->isClient()) { + } elseif ($user->isClient()) { header('Location: ../reports.php'); exit(); }