def check_permission_to_route
      route_provider = RouteProvider.new(self.class)

      if route_provider.verifiable_routes_list.include?(current_action)
        if logged_user.nil?
          raise UserNotLoggedInException.new(current_route, nil)
        end

        is_permitted = AccessProvider.action_permitted_for_user?(
          current_route, logged_user
        )

        is_permitted ? allow_route : deny_route
      elsif route_provider.non_verifiable_routes_list.include?(current_action)
        allow_route
      else
        deny_route
      end
    end
def check_permission_to_route
      route_provider = RouteProvider.new(self.class)

      if route_provider.verifiable_routes_list.include?(current_action)
        if logged_user.nil?
          raise UserNotLoggedInException.new(current_route, nil)
        end

        is_permitted = AccessProvider.action_permitted_for_user?(
          current_route, logged_user
        )

        is_permitted ? allow_route : deny_route
      elsif route_provider.non_verifiable_routes_list.include?(current_action)
        allow_route
      else
        deny_route
      end
    end
Check access to route and we expected the existing of current_user helper