Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74c6a423ee |
@@ -583,7 +583,7 @@ Characters.allow({
|
|||||||
|
|
||||||
Characters.deny({
|
Characters.deny({
|
||||||
update: function(userId, docs, fields, modifier) {
|
update: function(userId, docs, fields, modifier) {
|
||||||
// can't change owners
|
// can't change owners unless you are the current owner
|
||||||
return _.contains(fields, "owner");
|
return _.contains(fields, "owner") && doc.owner !== userId;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user