mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-06 10:19:48 +00:00
18 lines
384 B
Ruby
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
|