From e40d5814223deada7556ce6dc0d2436039d08785 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 28 Mar 2019 12:37:17 -0400 Subject: [PATCH] no need to owner group change check --- src/Api/Controllers/OrganizationUsersController.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Api/Controllers/OrganizationUsersController.cs b/src/Api/Controllers/OrganizationUsersController.cs index a8e4e5c67..9b4b5a9a4 100644 --- a/src/Api/Controllers/OrganizationUsersController.cs +++ b/src/Api/Controllers/OrganizationUsersController.cs @@ -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))); }