2017-03-23 16:27:59 +09:00
|
|
|
import Users from 'meteor/vulcan:users';
|
2016-07-19 17:30:59 +09:00
|
|
|
|
2016-12-06 10:55:47 +01:00
|
|
|
const guestsActions = [
|
2017-06-06 17:24:32 -07:00
|
|
|
"comments.view"
|
2016-07-19 17:30:59 +09:00
|
|
|
];
|
2016-12-06 10:55:47 +01:00
|
|
|
Users.groups.guests.can(guestsActions);
|
2016-07-19 17:30:59 +09:00
|
|
|
|
2016-12-06 10:55:47 +01:00
|
|
|
const membersActions = [
|
2017-06-06 17:24:32 -07:00
|
|
|
"comments.view",
|
2016-07-19 17:30:59 +09:00
|
|
|
"comments.new",
|
|
|
|
"comments.edit.own",
|
|
|
|
"comments.remove.own",
|
|
|
|
"comments.upvote",
|
|
|
|
"comments.cancelUpvote",
|
|
|
|
"comments.downvote",
|
|
|
|
"comments.cancelDownvote"
|
|
|
|
];
|
2016-12-06 10:55:47 +01:00
|
|
|
Users.groups.members.can(membersActions);
|
2016-07-19 17:30:59 +09:00
|
|
|
|
|
|
|
const adminActions = [
|
|
|
|
"comments.edit.all",
|
|
|
|
"comments.remove.all"
|
|
|
|
];
|
|
|
|
Users.groups.admins.can(adminActions);
|