mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
no need to owner group change check
This commit is contained in:
parent
54c46f716b
commit
e40d581422
@ -173,11 +173,6 @@ namespace Bit.Api.Controllers
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
if(organizationUser.Type == Core.Enums.OrganizationUserType.Owner && !_currentContext.OrganizationOwner(orgGuidId))
|
||||
{
|
||||
throw new BadRequestException("Only owners can update other owners.");
|
||||
}
|
||||
|
||||
await _organizationService.UpdateUserGroupsAsync(organizationUser, model.GroupIds.Select(g => new Guid(g)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user