X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/70272dc970919c348288bd09ff835f05e7538949..7051fc8c0f68618bbaff5f8bb48d3478ce93836a:/index.php diff --git a/index.php b/index.php index 51e1e016..cabc7060 100644 --- a/index.php +++ b/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');