Commit 81bfb7cd authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'philipcunningham-refactor-common-dast-mutation-321000' into 'master'

Remove extraneous check in DAST mutation

See merge request gitlab-org/gitlab!72076
parents 3e9d3e50 e2525ad2
...@@ -26,7 +26,6 @@ module Mutations ...@@ -26,7 +26,6 @@ module Mutations
def resolve(full_path:, id:) def resolve(full_path:, id:)
project = authorized_find!(full_path) project = authorized_find!(full_path)
raise Gitlab::Graphql::Errors::ResourceNotAvailable, 'Feature disabled' unless allowed?(project)
# TODO: remove this line once the compatibility layer is removed # TODO: remove this line once the compatibility layer is removed
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/257883 # See: https://gitlab.com/gitlab-org/gitlab/-/issues/257883
...@@ -44,10 +43,6 @@ module Mutations ...@@ -44,10 +43,6 @@ module Mutations
private private
def allowed?(project)
project.feature_available?(:security_on_demand_scans)
end
def find_dast_profile(project, id) def find_dast_profile(project, id)
::Dast::ProfilesFinder.new(project_id: project.id, id: id) ::Dast::ProfilesFinder.new(project_id: project.id, id: id)
.execute .execute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment