BigW Consortium Gitlab

Commit e72e2f9b by Lin Jen-Shin

Still grant :download_code if guest could do that

parent 0c532dbb
......@@ -48,11 +48,9 @@ module Gitlab
deploy_key.has_access_to?(project)
elsif user
user_download_access_check
elsif Guest.can?(:download_code, project)
true
else
raise UnauthorizedError, ERROR_MESSAGES[:download]
end
end ||
Guest.can?(:download_code, project) ||
raise(UnauthorizedError, ERROR_MESSAGES[:download])
end
def push_access_check(changes)
......
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