Thanks

----- Original Message -----
> > -    # rubocop:disable MethodLength
> > -    def rules
> > -
> > -      proxy_test = lambda do
> > -        route, _, params = Engine.routes.router.recognize(request) do
> > |rte, match, parameters|
> > -          break rte, match, parameters if rte.name
> > -        end
> > -
> > -        # route names are defined in routes.rb (:as => :name)
> > -        case route.name
> > -        when "api_proxy_consumer_deletionrecord_delete_path"
> > -          User.consumer? || Organization.all_editable?
> > -        when "api_proxy_owner_pools_path"
> > -          find_optional_organization
> > -          if params[:consumer]
> > -            (User.consumer? || @organization.readable?) &&
> > current_user.uuid == params[:consumer]
> 
> @iNecas I will address with a before filter to perform a similar check.
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/Katello/katello/pull/4073/files#r12634181