summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSytse Sijbrandij <sytses@gmail.com>2014-06-13 17:13:00 +0200
committerSytse Sijbrandij <sytses@gmail.com>2014-06-13 17:13:00 +0200
commite5d14c89a69e66a7f8615149ff8ddffe03cf55e0 (patch)
treeca2468cdd4c4404e4cf36d3aed36f32aa8a6dbf9 /lib
parentfbb35036057bae352669ada607033cec65db880d (diff)
downloadgitlab-ci-e5d14c89a69e66a7f8615149ff8ddffe03cf55e0.tar.gz
Remove added file and rename runners token constant to registration token.
Diffstat (limited to 'lib')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index fb57938..ded4118 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -22,7 +22,7 @@ module API
end
def authenticate_runners!
- forbidden! unless params[:token] == GitlabCi::RUNNERS_TOKEN
+ forbidden! unless params[:token] == GitlabCi::REGISTRATION_TOKEN
end
def authenticate_runner!