Blame view

collections/users.js 662 Bytes
3e761f11b   Ryan Glover   Update example co...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  /*
  * Allow
  */
  
  Meteor.users.allow({
    insert: function(){
      // Disallow user inserts on the client by default.
      return false;
    },
    update: function(){
      // Disallow user updates on the client by default.
      return false;
    },
    remove: function(){
      // Disallow user removes on the client by default.
      return false;
    }
  });
  
  /*
  * Deny
  */
  
  Meteor.users.deny({
    insert: function(){
      // Deny user inserts on the client by default.
      return true;
    },
    update: function(){
      // Deny user updates on the client by default.
      return true;
    },
    remove: function(){
      // Deny user removes on the client by default.
      return true;
    }
  });