X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=initialize.php;h=5d721b8038f6538b56b41f30fd127e0d91221150;hb=b462dba60a4686a99189cb9a6329c2cc99f5f7ac;hp=5dcd6fffde274cb27359f164c10df1a6055a9c11;hpb=5268895d4d0effb998af8e86cf79f8a2d7d53272;p=timetracker.git diff --git a/initialize.php b/initialize.php index 5dcd6fff..5d721b80 100644 --- a/initialize.php +++ b/initialize.php @@ -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);