gitlab-org--gitlab-foss/app/policies/global_policy.rb
2016-08-30 11:39:22 -07:00

8 lines
154 B
Ruby

class GlobalPolicy < BasePolicy
def rules
return unless @user
can! :create_group if @user.can_create_group
can! :read_users_list
end
end