mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
30 lines
No EOL
529 B
JavaScript
30 lines
No EOL
529 B
JavaScript
/*
|
|
|
|
Comments permissions
|
|
|
|
*/
|
|
|
|
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); |