fix: Unable to delete user via API (#3619)
Remove requirement to pass 'confirmation' to users.delete closes #3604
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user