Use `DisabledPermittedAuthenticatedAccount` at `DELETE /v1/accounts/me`
This commit is contained in:
parent
e23386ddc7
commit
ce689bdff3
|
@ -874,7 +874,7 @@ public class AccountController {
|
|||
@Timed
|
||||
@DELETE
|
||||
@Path("/me")
|
||||
public void deleteAccount(@Auth AuthenticatedAccount auth) throws InterruptedException {
|
||||
public void deleteAccount(@Auth DisabledPermittedAuthenticatedAccount auth) throws InterruptedException {
|
||||
accounts.delete(auth.getAccount(), AccountsManager.DeletionReason.USER_REQUEST);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue