Commit 63e308f6 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Fix boolean logic with nil value

parent d8e40c2a
...@@ -469,7 +469,7 @@ class Project < ActiveRecord::Base ...@@ -469,7 +469,7 @@ class Project < ActiveRecord::Base
end end
def auto_devops_enabled? def auto_devops_enabled?
if auto_devops if auto_devops && !auto_devops.enabled.nil?
auto_devops.enabled? auto_devops.enabled?
else else
current_application_settings.auto_devops_enabled? current_application_settings.auto_devops_enabled?
......
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