]> wagnertech.de Git - timetracker.git/blobdiff - initialize.php
Refactoring. Renamed team_id fields to become group_id.
[timetracker.git] / initialize.php
index 63ed88d5cdfef6a565353c066fa81ae40ab20459..261ec7479dfd06d42689edbaae2a4bd9b0da33c0 100644 (file)
@@ -169,15 +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);