X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/70272dc970919c348288bd09ff835f05e7538949..fec361583dcdb716abd921ca19f68c9d6e98b9f0:/mobile/index.php diff --git a/mobile/index.php b/mobile/index.php index 1c7cf231..fa3f04c4 100644 --- a/mobile/index.php +++ b/mobile/index.php @@ -30,8 +30,8 @@ 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(); } elseif ($user->isClient()) { header('Location: ../reports.php');