summaryrefslogtreecommitdiff
path: root/lib/gitlab/git_access.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git_access.rb')
-rw-r--r--lib/gitlab/git_access.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb
index da2a81983ec..344dd27589c 100644
--- a/lib/gitlab/git_access.rb
+++ b/lib/gitlab/git_access.rb
@@ -157,10 +157,10 @@ module Gitlab
# for deploy tokens and builds
def can_download?
deploy_key_can_download_code? ||
- deploy_token_can_download? ||
- build_can_download? ||
- user_can_download? ||
- guest_can_download?
+ deploy_token_can_download? ||
+ build_can_download? ||
+ user_can_download? ||
+ guest_can_download?
end
def check_container!
@@ -339,7 +339,7 @@ module Gitlab
def check_change_access!
if changes == ANY
can_push = deploy_key? ||
- user_can_push? ||
+ user_can_push? ||
project&.any_branch_allows_collaboration?(user_access.user)
unless can_push