diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-07-01 00:01:49 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-06 00:54:22 +0300 |
commit | be221a30ac3df7a2954f3be9dddac48aa2179c76 (patch) | |
tree | bc4e4fbe659e44963117e3f9bc5f2a58a44acfa3 /app/services/files | |
parent | cb24650ab8558b716fce286afdde56737da9bbb4 (diff) |
Revert back to not defining a default Git access protocol.
Diffstat (limited to 'app/services/files')
-rw-r--r-- | app/services/files/base_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/files/base_service.rb b/app/services/files/base_service.rb index 0326a8823e9..4bdb68a3698 100644 --- a/app/services/files/base_service.rb +++ b/app/services/files/base_service.rb @@ -43,7 +43,7 @@ module Files end def validate - allowed = ::Gitlab::GitAccess.new(current_user, project).can_push_to_branch?(@target_branch) + allowed = ::Gitlab::GitAccess.new(current_user, project, 'web').can_push_to_branch?(@target_branch) unless allowed raise_error("You are not allowed to push into this branch") |