2018-02-19 21:47:36 +08:00
|
|
|
# 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
|
2019-09-12 23:21:48 +08:00
|
|
|
module Organization
|
|
|
|
Canaid::Permissions.register_generic do
|
|
|
|
# organization: create team
|
|
|
|
can :create_teams do |_|
|
|
|
|
true
|
|
|
|
end
|
2021-08-02 21:38:37 +08:00
|
|
|
|
|
|
|
can :manage_label_printers do |_|
|
|
|
|
true
|
|
|
|
end
|
2021-08-03 19:36:36 +08:00
|
|
|
|
2021-05-31 19:32:31 +08:00
|
|
|
can :create_acitivity_filters do
|
2021-08-26 20:08:15 +08:00
|
|
|
Rails.application.config.x.webhooks_enabled
|
2021-05-31 19:32:31 +08:00
|
|
|
end
|
2017-12-04 18:12:35 +08:00
|
|
|
end
|
|
|
|
end
|