X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=password_change.php;h=2dce99f9a63b4d3d92ce7c362d6b13d8624ded06;hb=2908e17af44b65d6a97e299edd03293ddd802802;hp=bcbd5f4ad305648435c8fe0b3899f327d9d5a9f3;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git diff --git a/password_change.php b/password_change.php index bcbd5f4a..2dce99f9 100644 --- a/password_change.php +++ b/password_change.php @@ -49,8 +49,8 @@ if ($user_id) { $smarty->assign('i18n', $i18n->keys); } if ($user->custom_logo) { - $smarty->assign('custom_logo', 'images/'.$user->team_id.'.png'); - $smarty->assign('mobile_custom_logo', '../images/'.$user->team_id.'.png'); + $smarty->assign('custom_logo', 'images/'.$user->group_id.'.png'); + $smarty->assign('mobile_custom_logo', '../images/'.$user->group_id.'.png'); } $smarty->assign('user', $user); } @@ -82,8 +82,8 @@ 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()) { - header('Location: admin_teams.php'); + if ($user->can('administer_site')) { + header('Location: admin_groups.php'); } elseif ($user->isClient()) { header('Location: reports.php'); } else {