1
0
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:
Kyle Spearrin 2019-03-28 12:37:17 -04:00
parent 54c46f716b
commit e40d581422

View File

@ -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)));
}