X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/5268895d4d0effb998af8e86cf79f8a2d7d53272..45c855269d952873285f7a835e82fc2b3eff3971:/initialize.php diff --git a/initialize.php b/initialize.php index 5dcd6fff..261ec747 100644 --- a/initialize.php +++ b/initialize.php @@ -170,8 +170,8 @@ $msg = new ActionErrors(); // Notification messages (not errrors) for user. import('ttUser'); $user = new ttUser(null, $auth->getUserId()); 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); @@ -199,13 +199,6 @@ if (!$lang) { // Load i18n file. $i18n->load($lang); -// Temporary code to assign role_id to users who don't yet have it. -if ($user->login && !$user->role_id) { - $user->migrateLegacyRole(); // Note: this requires initialized $i18n. - // Recycle User object, now with proper role_id. - $user = new ttUser(null, $auth->getUserId()); -} - // Assign things for smarty to use in template files. $smarty->assign('i18n', $i18n->keys); $smarty->assign('err', $err);