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