summaryrefslogtreecommitdiff
path: root/app/services/files/update_service.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-24 14:10:55 +0100
committerDouwe Maan <douwe@gitlab.com>2015-03-24 14:11:48 +0100
commit4830b2be5e076126f89d2c67bab94302559aa93a (patch)
treeed221ec195ff15ab3365701838e89b6698682ded /app/services/files/update_service.rb
parent2953e0d19b46a937ee9d84139adbc263c8e89757 (diff)
downloadgitlab-ce-4830b2be5e076126f89d2c67bab94302559aa93a.tar.gz
Refactor GitAccess to use instance variables.
Diffstat (limited to 'app/services/files/update_service.rb')
-rw-r--r--app/services/files/update_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/files/update_service.rb b/app/services/files/update_service.rb
index 328cf3a4b06..0724d3ae634 100644
--- a/app/services/files/update_service.rb
+++ b/app/services/files/update_service.rb
@@ -3,7 +3,7 @@ require_relative "base_service"
module Files
class UpdateService < BaseService
def execute
- allowed = ::Gitlab::GitAccess.can_push_to_branch?(current_user, project, ref)
+ allowed = ::Gitlab::GitAccess.new(current_user, project).can_push_to_branch?(ref)
unless allowed
return error("You are not allowed to push into this branch")