Commit 97fa9904 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Use 400 to notify that CI API is disabled

parent e41a29b0
......@@ -4,7 +4,9 @@ module Ci
UPDATE_RUNNER_EVERY = 60
def check_enable_flag!
not_found! unless current_application_settings.ci_enabled
unless current_application_settings.ci_enabled
render_api_error!('400 (Bad request) CI is disabled', 400)
end
end
def authenticate_runners!
......
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