Use DisabledPermittedAuthenticatedAccount at DELETE /v1/accounts/me

This commit is contained in:
Chris Eager authored and GitHub committed 2023-02-09 09:05:29 -08:00
1 parent e23386ddc7
commit ce689bdff3
1 file changed
+1 -1
@@ -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);
}