handle hidden users in teams (#1841)
* allow to add disabled users to team * allow to include disabled users in user-select * include disabled users when editing team members ONLY if they are already part of team
This commit is contained in:
@@ -305,10 +305,6 @@ final class TeamController extends BaseApiController
|
||||
throw new NotFoundException('User not found');
|
||||
}
|
||||
|
||||
if (!$user->isEnabled()) {
|
||||
throw new BadRequestHttpException('Cannot add disabled user to team');
|
||||
}
|
||||
|
||||
if ($user->isInTeam($team)) {
|
||||
throw new BadRequestHttpException('User is already member of the team');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user