change GL_REPO_PATH -> GL_REPO_NAME

This commit is contained in:
Alexander Machehin 2015-03-11 16:07:14 +05:00
parent 5b0d149275
commit fd75e0ffcc
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ module Grack
user = User.auth_by_token_or_login_pass(u, p) and user = User.auth_by_token_or_login_pass(u, p) and
ability = ::Ability.new(user) and ability.can?(action, project) and ability = ::Ability.new(user) and ability.can?(action, project) and
ENV['GL_ID'] = "user-#{user.id}" 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.call(env) unless project.public? && read? # need auth
end end
@app.call(env) # next app in stack @app.call(env) # next app in stack