Commit fd428a2c authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix AutoDevopsHelper settings

parent 440e9311
...@@ -2,7 +2,7 @@ module AutoDevopsHelper ...@@ -2,7 +2,7 @@ module AutoDevopsHelper
def show_auto_devops_callout?(project) def show_auto_devops_callout?(project)
show_callout?('auto_devops_settings_dismissed') && show_callout?('auto_devops_settings_dismissed') &&
can?(current_user, :admin_pipeline, project) && can?(current_user, :admin_pipeline, project) &&
!current_settings.auto_devops_enabled? && !current_application_settings.auto_devops_enabled? &&
project.auto_devops&.enabled.nil? project.auto_devops&.enabled.nil?
end end
end end
This diff is collapsed.
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