fix error in Characters.deny()

Renamed `docs` to `doc`, since `doc.owner` was undefined.
This commit is contained in:
Andrew Zhu
2018-09-07 14:07:55 -07:00
committed by GitHub
parent 74c6a423ee
commit 06ffc94b4c

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;
}