Fix update_runner_info helper

This commit is contained in:
Kamil Trzcinski 2015-09-16 16:46:26 +02:00
parent 7348d34cfd
commit e01300ddb0

View file

@ -1,6 +1,8 @@
module Ci
module API
module Helpers
UPDATE_RUNNER_EVERY = 60
def authenticate_runners!
forbidden! unless params[:token] == GitlabCi::REGISTRATION_TOKEN
end