Commit e2525ad2 authored by Philip Cunningham's avatar Philip Cunningham

Remove extraneous check in DAST mutation

parent 4fe41b1e
......@@ -26,7 +26,6 @@ module Mutations
def resolve(full_path:, id:)
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
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/257883
......@@ -44,10 +43,6 @@ module Mutations
private
def allowed?(project)
project.feature_available?(:security_on_demand_scans)
end
def find_dast_profile(project, id)
::Dast::ProfilesFinder.new(project_id: project.id, id: id)
.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