Use `DisabledPermittedAuthenticatedAccount` at `DELETE /v1/accounts/me`

This commit is contained in:
Chris Eager 2023-02-09 11:05:29 -06:00 committed by GitHub
parent e23386ddc7
commit ce689bdff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}