X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=password_change.php;h=832118f6c3fdb826e65c9a6a7d47a1997e797d2b;hb=3209a25c21cd59c6476d820624545963a5a4a857;hp=bcbd5f4ad305648435c8fe0b3899f327d9d5a9f3;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git diff --git a/password_change.php b/password_change.php index bcbd5f4a..832118f6 100644 --- a/password_change.php +++ b/password_change.php @@ -82,7 +82,7 @@ if ($request->isPost()) { if ($auth->doLogin($user->login, $cl_password1)) { setcookie('tt_login', $user->login, time() + COOKIE_EXPIRE, '/'); // Redirect, depending on user role. - if ($user->isAdmin()) { + if ($user->can('administer_site')) { header('Location: admin_teams.php'); } elseif ($user->isClient()) { header('Location: reports.php');