diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-07 09:09:13 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-07 09:09:13 +0000 |
commit | 41cb558299b483b44b45351730ee4c0e9fe4ca2c (patch) | |
tree | 00688a9e40021c66195ad826ceddd9c19385cdcf /lib/api/internal | |
parent | 3d064c737e8448880e6180aeddc59000a01aa6a8 (diff) | |
download | gitlab-ce-41cb558299b483b44b45351730ee4c0e9fe4ca2c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/internal')
-rw-r--r-- | lib/api/internal/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/internal/base.rb b/lib/api/internal/base.rb index 927639599d2..1e528d7a691 100644 --- a/lib/api/internal/base.rb +++ b/lib/api/internal/base.rb @@ -108,7 +108,7 @@ module API # check_ip - optional, only in EE version, may limit access to # group resources based on its IP restrictions post "/allowed" do - if repo_type.snippet? && Feature.disabled?(:version_snippets, actor.user) + if repo_type.snippet? && params[:protocol] != 'web' && Feature.disabled?(:version_snippets, actor.user) break response_with_status(code: 401, success: false, message: 'Snippet git access is disabled.') end |