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-05-31 19:32:31 +08:00
|
|
|
|
|
|
|
can :create_acitivity_filters do
|
2021-06-01 16:56:52 +08:00
|
|
|
true
|
2021-05-31 19:32:31 +08:00
|
|
|
end
|
2017-12-04 18:12:35 +08:00
|
|
|
end
|
|
|
|
end
|