X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/d8d15e03655dcacf8365baf6d2b36d80dad84890..bf4f6db7b2772e4cc3a0e382a7af35a144ce1c78:/initialize.php 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);