X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/585e3677a73f80cadd664572e3863fc38e4d8633..cd8dafc45402126fed025ee97930f03386655763:/initialize.php diff --git a/initialize.php b/initialize.php index 53342b68..261ec747 100644 --- a/initialize.php +++ b/initialize.php @@ -169,16 +169,9 @@ $msg = new ActionErrors(); // Notification messages (not errrors) for user. // Create an instance of ttUser class. This gets us most of user details. import('ttUser'); $user = new ttUser(null, $auth->getUserId()); -// Temporary code to assign role_id to users who don't yet have it. -/* -if ($user->login && !$user->role_id) { - $user->migrateLegacyRole(); - // Recycle User object, now with proper role_id. - $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);