Files
gitlab-foss/lib/api/concerns/ai_workflows_access.rb
2025-05-21 15:13:21 +00:00

18 lines
384 B
Ruby

# frozen_string_literal: true
module API
module Concerns
module AiWorkflowsAccess
extend ActiveSupport::Concern
class_methods do
def allow_ai_workflows_access
allow_access_with_scope :ai_workflows, if: ->(request) do
request.get? || request.head? || request.post? || request.put?
end
end
end
end
end
end