mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
24 lines
No EOL
499 B
JavaScript
24 lines
No EOL
499 B
JavaScript
import Users from 'meteor/vulcan:users';
|
|
|
|
const guestsActions = [
|
|
"comments.view"
|
|
];
|
|
Users.groups.guests.can(guestsActions);
|
|
|
|
const membersActions = [
|
|
"comments.view",
|
|
"comments.new",
|
|
"comments.edit.own",
|
|
"comments.remove.own",
|
|
"comments.upvote",
|
|
"comments.cancelUpvote",
|
|
"comments.downvote",
|
|
"comments.cancelDownvote"
|
|
];
|
|
Users.groups.members.can(membersActions);
|
|
|
|
const adminActions = [
|
|
"comments.edit.all",
|
|
"comments.remove.all"
|
|
];
|
|
Users.groups.admins.can(adminActions); |