gitlab-org--gitlab-foss/app/helpers/auto_devops_helper.rb
2017-09-07 15:08:51 +02:00

7 lines
235 B
Ruby

module AutoDevopsHelper
def show_auto_devops_callout?(project)
show_callout?('auto_devops_settings_dismissed') &&
can?(current_user, :admin_pipeline, project) &&
project.has_auto_devops_implicitly_disabled?
end
end