X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=index.php;h=cabc7060ba117710a7a07d632b6d7cf113feea27;hb=HEAD;hp=51e1e016f5d48a86f5f37c460d916369d26b24d7;hpb=70272dc970919c348288bd09ff835f05e7538949;p=timetracker.git 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');