X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=index.php;h=fd4dde8ed821ebb73443cd99781cca6f880d380f;hb=3129f6204498630940977123a34a1315d9fffbb7;hp=610794e004e124c7bbace34fac1131422b7bc345;hpb=d26c95718cac0a2994ab4e9633b59f420a0816b4;p=timetracker.git diff --git a/index.php b/index.php index 610794e0..fd4dde8e 100644 --- a/index.php +++ b/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(); }