mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
25 lines
No EOL
497 B
JavaScript
25 lines
No EOL
497 B
JavaScript
import Users from 'meteor/nova:users';
|
|
|
|
const anonymousActions = [
|
|
"posts.view"
|
|
];
|
|
Users.groups.anonymous.can(anonymousActions);
|
|
|
|
const defaultActions = [
|
|
"posts.view",
|
|
"posts.new",
|
|
"posts.edit.own",
|
|
"posts.remove.own",
|
|
"posts.upvote",
|
|
"posts.cancelUpvote",
|
|
"posts.downvote",
|
|
"posts.cancelDownvote"
|
|
];
|
|
Users.groups.default.can(defaultActions);
|
|
|
|
const adminActions = [
|
|
"posts.new.approved",
|
|
"posts.edit.all",
|
|
"posts.remove.all"
|
|
];
|
|
Users.groups.admins.can(adminActions); |