bigbluebutton-Github/labs/meteor-client/server/collection-permissions.js
2014-06-24 11:20:18 -07:00

26 lines
637 B
JavaScript
Executable File

SetCollectionPermissions = function() {
/*Users.allow({
'insert': function(userId, doc){
return userId;
},
'update': function(userId, doc, fields, modifier){
return userId;
},
});*/
/*Meetings.users.allow({
'insert': function(userId, doc){
return Roles.userIsInRole(Meteor.user(), ["admin"]);
},
'update': function (userId, doc, fields, modifier) {
return Roles.userIsInRole(Meteor.user(), ["admin"]) && doc.username !== "Admin";
},
remove: function(userId, doc) {
return Roles.userIsInRole(userId, ["admin"]) && doc.username !== "Admin";
}
});*/
return 0;
}