Commit 57f9e223 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'fix-spring-git-access-denied' into 'master'

Fix git access denied errors when using Spring

See merge request gitlab-org/gitlab!54456
parents 58606ab7 f061049f
......@@ -60,7 +60,8 @@ module Gitlab
end
def legacy_disk_path
if self.class.disk_access_denied?
# Do not use self.class due to Spring reloading issues
if Gitlab::GitalyClient::StorageSettings.disk_access_denied?
raise DirectPathAccessError, "git disk access denied"
end
......
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