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

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