BigW Consortium Gitlab

Commit 2d6cafa7 by Michael Kozono

Render GitAccess message if authorized

parent ff8a053d
......@@ -68,17 +68,13 @@ class Projects::GitHttpController < Projects::GitHttpClientController
def render_denied
if user && can?(user, :read_project, project)
render plain: access_denied_message, status: :forbidden
render plain: access_check.message, status: :forbidden
else
# Do not leak information about project existence
render_not_found
end
end
def access_denied_message
'Access denied'
end
def upload_pack_allowed?
return false unless Gitlab.config.gitlab_shell.upload_pack
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment