mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
23 lines
487 B
JavaScript
23 lines
487 B
JavaScript
![]() |
import Users from 'meteor/nova:users';
|
||
|
|
||
|
const anonymousActions = [
|
||
|
"comments.view"
|
||
|
];
|
||
|
Users.groups.anonymous.can(anonymousActions);
|
||
|
|
||
|
const defaultActions = [
|
||
|
"comments.new",
|
||
|
"comments.edit.own",
|
||
|
"comments.remove.own",
|
||
|
"comments.upvote",
|
||
|
"comments.cancelUpvote",
|
||
|
"comments.downvote",
|
||
|
"comments.cancelDownvote"
|
||
|
];
|
||
|
Users.groups.default.can(defaultActions);
|
||
|
|
||
|
const adminActions = [
|
||
|
"comments.edit.all",
|
||
|
"comments.remove.all"
|
||
|
];
|
||
|
Users.groups.admins.can(adminActions);
|