X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=initialize.php;h=5d721b8038f6538b56b41f30fd127e0d91221150;hb=e59d57b1fcf105382028dcfc0157a6ca84b0dc46;hp=63ed88d5cdfef6a565353c066fa81ae40ab20459;hpb=09bb840079b835529b298c4d84a9a2e0f8a4bdb8;p=timetracker.git diff --git a/initialize.php b/initialize.php index 63ed88d5..5d721b80 100644 --- a/initialize.php +++ b/initialize.php @@ -169,12 +169,6 @@ $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');