mirror of
https://github.com/bitwarden/server.git
synced 2025-04-07 05:58:13 -05: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();
|
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)));
|
await _organizationService.UpdateUserGroupsAsync(organizationUser, model.GroupIds.Select(g => new Guid(g)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user