Reputation: 40386
I've removed the autopublish
package, and I'm perfectly ok with only using Meteor.methods
as the sole interface to call procedures on the server. However, I just discovered the client can still delete things by simply running MyModel.remove({ _id: 'someid' })
in the console.
What's the best way to deny all such actions on all collections in Meteor?
Upvotes: 1
Views: 118
Reputation: 75975
The easiest way is to remove the insecure
package. If you have no allow
rules then by default all inserts from the client will be denied:
meteor remove insecure
Upvotes: 4
Reputation: 64342
Remove the insecure
package. If you don't have any allow or deny rules, the default action will be to deny all client-side database mutations.
Upvotes: 1