summaryrefslogtreecommitdiff
path: root/app/policies/global_policy.rb
blob: 3c2fbe6b56baa58386384ef32b957684a5a203ec (plain)
1
2
3
4
5
6
7
8
class GlobalPolicy < BasePolicy
  def rules
    return unless @user

    can! :create_group if @user.can_create_group
    can! :read_users_list
  end
end