fix bugs of securtiy
This commit is contained in:
parent
430d300cfe
commit
33c191f8e7
@ -3,9 +3,13 @@ carts.allow({
|
|||||||
insert: function (userId, doc) {
|
insert: function (userId, doc) {
|
||||||
return Roles.userIsInRole(userId, ['admin']);
|
return Roles.userIsInRole(userId, ['admin']);
|
||||||
},
|
},
|
||||||
update: userId,
|
update: function (userId, doc) {
|
||||||
|
return (userId != null);
|
||||||
|
},
|
||||||
remove: function (userId, doc) {
|
remove: function (userId, doc) {
|
||||||
return Roles.userIsInRole(userId, ['admin']);
|
return Roles.userIsInRole(userId, ['admin']);
|
||||||
},
|
},
|
||||||
fetch: userId
|
fetch: function (userId, doc) {
|
||||||
|
return (userId != null);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
@ -3,9 +3,13 @@ Chromebooks.allow({
|
|||||||
insert: function (userId, doc) {
|
insert: function (userId, doc) {
|
||||||
return Roles.userIsInRole(userId, ['admin']);
|
return Roles.userIsInRole(userId, ['admin']);
|
||||||
},
|
},
|
||||||
update: userId,
|
update: function (userId, doc) {
|
||||||
|
return (userId != null);
|
||||||
|
},
|
||||||
remove: function (userId, doc) {
|
remove: function (userId, doc) {
|
||||||
return Roles.userIsInRole(userId, ['admin']);
|
return Roles.userIsInRole(userId, ['admin']);
|
||||||
},
|
},
|
||||||
fetch: userId
|
fetch: function (userId, doc) {
|
||||||
|
return (userId != null);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user