Fixed restored characters not belonging to the user restoring them

This commit is contained in:
Stefan Zermatten
2019-02-11 12:10:04 +02:00
parent 26784f11b6
commit c9710bdb09

View File

@@ -88,6 +88,9 @@ Template.characterList.events({
callback(dump){
if (!dump) return;
dump.character.name += " - Restored"
dump.character.owner = Meteor.userId();
dump.character.readers = [];
dump.character.writers = [];
giveCharacterDumpNewIds(dump);
restoreCharacter(dump);
Router.go("characterSheet", {