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