diff options
Diffstat (limited to 'lib/api/internal/base.rb')
-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 |