debian-mirror-gitlab/app/policies/global_policy.rb

9 lines
154 B
Ruby
Raw Normal View History

2016-09-29 09:46:39 +05:30
class GlobalPolicy < BasePolicy
def rules
return unless @user
can! :create_group if @user.can_create_group
can! :read_users_list
end
end