fix: Unable to delete user via API (#3619)

Remove requirement to pass 'confirmation' to users.delete
closes #3604
This commit is contained in:
Tom Moor
2022-06-02 12:56:27 -07:00
committed by GitHub
parent 68dd76cfa3
commit 2d7dd558a1
5 changed files with 13 additions and 32 deletions

View File

@@ -355,8 +355,7 @@ router.post("users.resendInvite", auth(), async (ctx) => {
});
router.post("users.delete", auth(), async (ctx) => {
const { confirmation, id } = ctx.body;
assertPresent(confirmation, "confirmation is required");
const { id } = ctx.body;
const actor = ctx.state.user;
let user = actor;