summaryrefslogtreecommitdiff
path: root/lib/gitlab_access.rb
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-17 12:31:44 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-18 14:14:31 +0200
commitbc5aea42748633013a3e50d699a1b58281404d47 (patch)
tree322b4b5a8e30f16c5c7693639f299bbbb1ca782b /lib/gitlab_access.rb
parentaa1a39a927b2810c07d23920d5035c6143d8c9cc (diff)
downloadgitlab-shell-zj-repo-disk-path-removal.tar.gz
Internal allowed response disk path is ignoredzj-repo-disk-path-removal
Diffstat (limited to 'lib/gitlab_access.rb')
-rw-r--r--lib/gitlab_access.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/gitlab_access.rb b/lib/gitlab_access.rb
index e1a5e35..e597f7d 100644
--- a/lib/gitlab_access.rb
+++ b/lib/gitlab_access.rb
@@ -11,12 +11,11 @@ class GitlabAccess
include NamesHelper
- attr_reader :config, :gl_repository, :repo_path, :changes, :protocol
+ attr_reader :config, :gl_repository, :changes, :protocol
- def initialize(gl_repository, repo_path, actor, changes, protocol)
+ def initialize(gl_repository, actor, changes, protocol)
@config = GitlabConfig.new
@gl_repository = gl_repository
- @repo_path = repo_path.strip
@actor = actor
@changes = changes.lines
@protocol = protocol
@@ -24,7 +23,7 @@ class GitlabAccess
def exec
status = GitlabMetrics.measure('check-access:git-receive-pack') do
- api.check_access('git-receive-pack', @gl_repository, @repo_path, @actor, @changes, @protocol, env: ObjectDirsHelper.all_attributes.to_json)
+ api.check_access('git-receive-pack', @gl_repository, @actor, @changes, @protocol, env: ObjectDirsHelper.all_attributes.to_json)
end
raise AccessDeniedError, status.message unless status.allowed?