mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
11 lines
No EOL
304 B
JavaScript
11 lines
No EOL
304 B
JavaScript
Meteor.users.allow({
|
|
insert: function(userId, doc){
|
|
return true;
|
|
}
|
|
, update: function(userId, doc, fields, modifier){
|
|
return isAdminById(userId) || (doc._id && doc._id === userId);
|
|
}
|
|
, remove: function(userId, doc){
|
|
return isAdminById(userId) || (doc._id && doc._id === userId);
|
|
}
|
|
}); |