mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
- A new `insecure` package reproduces the experience we had before this change, in which all collections are by default totally open to all changes - With or without the `insecure` package, you can now call collection.allow() to define which calls to the default mutator methods should be allowed
7 lines
225 B
JavaScript
7 lines
225 B
JavaScript
Meteor._ServerTestResults = new Meteor.Collection('tinytest_results');
|
|
Meteor._ServerTestResults.allow({
|
|
insert: function() { return true; },
|
|
update: function() { return true; },
|
|
remove: function() { return true; }
|
|
});
|