X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/bf4f6db7b2772e4cc3a0e382a7af35a144ce1c78..8d68ecdd7b1c45cb2a5cf592b8d504d7e4614911:/users.php diff --git a/users.php b/users.php index 79f2df3e..28a37227 100644 --- a/users.php +++ b/users.php @@ -41,12 +41,6 @@ if (!ttAccessAllowed('view_users')) { // Get users. $active_users = ttTeamHelper::getActiveUsers(array('getAllFields'=>true)); if($user->canManageTeam()) { - - // If there are no roles in team, introduce default ones. - if (!ttRoleHelper::rolesExist()) ttRoleHelper::createDefaultRoles(); // TODO: refactor or remove after roles revamp. - // This is here temporarily so that we have roles to work with to manage users. - // Normally, this should be done during an upgrade step (not yet implemented). - $can_delete_manager = (1 == count($active_users)); $inactive_users = ttTeamHelper::getInactiveUsers($user->team_id, true); }