diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-06-29 23:25:04 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-06 00:54:22 +0300 |
commit | 29c50c53159333bdd124d4d3584ae826f49c28ad (patch) | |
tree | 4f8e56e18100c64186f0e819a5b0112effcaab27 /app/services/files | |
parent | fbaabb3911c6fec25edc25bfffad94ae2a7c0e28 (diff) |
Default Git access protocol to `web`
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 4bdb68a3698..0326a8823e9 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, 'web').can_push_to_branch?(@target_branch) + allowed = ::Gitlab::GitAccess.new(current_user, project).can_push_to_branch?(@target_branch) unless allowed raise_error("You are not allowed to push into this branch") |