Files
meteor/packages/tinytest/model.js
Avital Oliver b227d59b54 Access control for default collection mutators
- 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
2012-07-23 17:57:11 -07:00

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