mirror of
https://github.com/bitwarden/server.git
synced 2025-07-07 02:52:50 -05:00
[EC-447] Removed unneeded ScimUserRequestModel for Users DELETE endpoint as it was causing an error (#2294)
This commit is contained in:
@ -262,7 +262,7 @@ public class UsersController : Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpDelete("{id}")]
|
[HttpDelete("{id}")]
|
||||||
public async Task<IActionResult> Delete(Guid organizationId, Guid id, [FromBody] ScimUserRequestModel model)
|
public async Task<IActionResult> Delete(Guid organizationId, Guid id)
|
||||||
{
|
{
|
||||||
var orgUser = await _organizationUserRepository.GetByIdAsync(id);
|
var orgUser = await _organizationUserRepository.GetByIdAsync(id);
|
||||||
if (orgUser == null || orgUser.OrganizationId != organizationId)
|
if (orgUser == null || orgUser.OrganizationId != organizationId)
|
||||||
|
Reference in New Issue
Block a user