mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
20 lines
555 B
Ruby
20 lines
555 B
Ruby
# TODO: For all permissions: foe ALL permission levels check whether they're
|
|
# archived (for restore permissions) or active (for all other permissions) -
|
|
# now we mostly do the check only for the permission level for which the
|
|
# permission was made
|
|
module Organization
|
|
Canaid::Permissions.register_generic do
|
|
# organization: create team
|
|
can :create_teams do |_|
|
|
true
|
|
end
|
|
|
|
can :manage_label_printers do |_|
|
|
true
|
|
end
|
|
|
|
can :create_acitivity_filters do
|
|
Rails.application.config.x.webhooks_enabled
|
|
end
|
|
end
|
|
end
|