Answer the question
In order to leave comments, you need to log in
How to remove data in collections from client via selectors?
Meteor allows deleting documents from the collection on the client only through ID (Uncaught Error: Not permitted. Untrusted code may only remove documents by ID. [403]), and I would really like to delete data through selectors, can I somehow get around this restriction?
Tried like this:
Banners.allow({
update:function(userId, doc, fieldNames, modifier) {
return true
},
remove:function(userId, doc){
return true;
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question