rename /rpg-docs to /app

This commit is contained in:
Andrew Zhu
2018-06-07 01:07:49 -07:00
parent de93636c7c
commit c099e3173b
420 changed files with 12 additions and 25 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
}
});