change GL_REPO_PATH -> GL_REPO_NAME
This commit is contained in:
parent
5b0d149275
commit
fd75e0ffcc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue