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