X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Flogin.php;h=d094dfbf1593cfcd28f1c73ce8d5c9e7f0fb13e2;hb=7a58c9da8ffac9b0832a047fe4ef1b93618179f0;hp=78db8dab4c5aecbe4831784d0863f7b8383f102d;hpb=c8caee8e34eec5a3fd047d679e79af149ed1e433;p=timetracker.git diff --git a/mobile/login.php b/mobile/login.php index 78db8dab..d094dfbf 100644 --- a/mobile/login.php +++ b/mobile/login.php @@ -67,8 +67,8 @@ if ($request->isPost()) { $user = new ttUser(null, $auth->getUserId()); // Redirect, depending on user role. - if ($user->isAdmin()) { - header('Location: ../admin_teams.php'); + if ($user->can('administer_site')) { + header('Location: ../admin_groups.php'); } elseif ($user->isClient()) { header('Location: ../reports.php'); } else {