BigW Consortium Gitlab

global_policy.rb 154 Bytes
Newer Older
1 2 3
class GlobalPolicy < BasePolicy
  def rules
    return unless @user
4

5 6 7 8
    can! :create_group if @user.can_create_group
    can! :read_users_list
  end
end