mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
Remove CanDeleteUser constraint from "/api/v1/users/{userId}" endpoint
This commit is contained in:
parent
d9935ada9d
commit
9fc2d2b76b
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ namespace BTCPayServer.Controllers.GreenField
|
|||
}
|
||||
|
||||
[HttpDelete("~/api/v1/users/{userId}")]
|
||||
[Authorize(Policy = Policies.CanDeleteUser, AuthenticationSchemes = AuthenticationSchemes.GreenfieldAPIKeys)]
|
||||
[Authorize(AuthenticationSchemes = AuthenticationSchemes.GreenfieldAPIKeys)]
|
||||
public async Task<ActionResult<ApplicationUserData>> DeleteUser(string userId)
|
||||
{
|
||||
// Only admins should be allowed to delete users
|
||||
|
|
Loading…
Add table
Reference in a new issue