Merge pull request #182 from mommothazaz123/patch-1

fix error in Characters.deny()
This commit is contained in:
Stefan Zermatten
2018-09-14 10:06:43 +02:00
committed by GitHub

View File

@@ -582,7 +582,7 @@ Characters.allow({
});
Characters.deny({
update: function(userId, docs, fields, modifier) {
update: function(userId, doc, fields, modifier) {
// can't change owners unless you are the current owner
return _.contains(fields, "owner") && doc.owner !== userId;
}