Commit ccf91da0aab8839e7cb2b085d7fe9be2e7bc82d8

Authored by tmcdeveloper
1 parent 6763b1f12b
Exists in master

add allow/deny rules to Documents collection

Closes #149
Showing 1 changed file with 12 additions and 0 deletions   Show diff stats
imports/api/documents/documents.js
... ... @@ -5,6 +5,18 @@ import { Factory } from 'meteor/dburles:factory';
5 5  
6 6 export const Documents = new Mongo.Collection('Documents');
7 7  
  8 +Documents.allow({
  9 + insert: () => false,
  10 + update: () => false,
  11 + remove: () => false,
  12 +});
  13 +
  14 +Documents.deny({
  15 + insert: () => true,
  16 + update: () => true,
  17 + remove: () => true,
  18 +});
  19 +
8 20 Documents.schema = new SimpleSchema({
9 21 title: {
10 22 type: String,
... ...