scinote-web/app/permissions/organization.rb

13 lines
401 B
Ruby
Raw Normal View History

# 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
end
end