From fd75e0ffcc1bfd65638576265cf41bb27100ed66 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 11 Mar 2015 16:07:14 +0500 Subject: [PATCH] change GL_REPO_PATH -> GL_REPO_NAME --- lib/plugins/grack/auth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/grack/auth.rb b/lib/plugins/grack/auth.rb index d53847412..79eb318a0 100644 --- a/lib/plugins/grack/auth.rb +++ b/lib/plugins/grack/auth.rb @@ -14,7 +14,7 @@ module Grack user = User.auth_by_token_or_login_pass(u, p) and ability = ::Ability.new(user) and ability.can?(action, project) and ENV['GL_ID'] = "user-#{user.id}" and - ENV['GL_REPO_PATH'] = project.path + ENV['GL_REPO_NAME'] = project.path end.call(env) unless project.public? && read? # need auth end @app.call(env) # next app in stack