diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-10 17:29:44 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-11 18:02:09 +0100 |
commit | 8cdd54cc0696b76daa2baf463d02d944b50bac6a (patch) | |
tree | eb3e5c1aeef92181b49217c965685e5b9ba67c74 /lib/ci/api/helpers.rb | |
parent | e80e3f5372d6bcad1fbe04a85b3086bb66794828 (diff) | |
download | gitlab-ce-8cdd54cc0696b76daa2baf463d02d944b50bac6a.tar.gz |
Add runners token
Diffstat (limited to 'lib/ci/api/helpers.rb')
-rw-r--r-- | lib/ci/api/helpers.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/ci/api/helpers.rb b/lib/ci/api/helpers.rb index 02502333756..9891b5e38ea 100644 --- a/lib/ci/api/helpers.rb +++ b/lib/ci/api/helpers.rb @@ -13,10 +13,6 @@ module Ci forbidden! unless current_runner end - def authenticate_project_token!(project) - forbidden! unless project.valid_token?(params[:project_token]) - end - def authenticate_build_token!(build) token = (params[BUILD_TOKEN_PARAM] || env[BUILD_TOKEN_HEADER]).to_s forbidden! unless token && build.valid_token?(token) |