gitlab-org--gitlab-foss/app/policies/global_policy.rb

9 lines
154 B
Ruby
Raw Normal View History

2016-08-16 19:29:19 -04:00
class GlobalPolicy < BasePolicy
def rules
return unless @user
2016-08-30 14:14:07 -04:00
2016-08-16 19:29:19 -04:00
can! :create_group if @user.can_create_group
can! :read_users_list
end
end