Changed rpg-docs folder to app

This commit is contained in:
Stefan Zermatten
2018-05-21 14:21:07 +02:00
parent 45e9f491ff
commit 52baf297ca
419 changed files with 12 additions and 13 deletions

View File

@@ -0,0 +1,11 @@
Meteor.methods({
removeMeFromReaders: function(charId) {
var userId = Meteor.userId();
var character = Characters.findOne(charId);
if (!character) return;
if (!_.contains(character.readers, userId)) return;
Characters.update(charId, {$pull: {"readers": userId}}); //we don't check write permission as you should always be able to remove youself from readers
}
});