User accounts can now be deleted with some UI to prevent accidental deletion

This commit is contained in:
Stefan Zermatten
2021-02-25 14:28:51 +02:00
parent a5460bba0b
commit 2a983b0a94
10 changed files with 268 additions and 8 deletions

View File

@@ -28,10 +28,14 @@ const removeCreature = new ValidatedMethod({
},
run({charId}) {
assertOwnership(charId, this.userId)
Creatures.remove(charId);
this.unblock();
removeRelatedDocuments(charId);
this.unblock();
removeCreatureWork(charId)
},
});
export function removeCreatureWork(creatureId){
Creatures.remove(creatureId);
removeRelatedDocuments(creatureId);
}
export default removeCreature;