Commit efe8dfda authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Change the name of the guard method

parent 0480aaca
......@@ -49,7 +49,7 @@ module EE
end
def missing_security_scan_types
merge_request.missing_security_scan_types if present_missing_security_scan_types?
merge_request.missing_security_scan_types if expose_missing_security_scan_types?
end
private
......@@ -58,7 +58,7 @@ module EE
approval_feature_available? && merge_request.iid
end
def present_missing_security_scan_types?
def expose_missing_security_scan_types?
::Feature.enabled?(:missing_mr_security_scan_types, project) &&
can?(current_user, :read_pipeline, merge_request.actual_head_pipeline)
end
......
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