X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/3705caa8680d82736ab1a1d21e8829bed1226341..aba62f48b2293cde4cc39123deb92bd7935dc76b:/mobile/index.php 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(); }