summaryrefslogtreecommitdiff
path: root/lib/gitlab/user_access.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/user_access.rb')
-rw-r--r--lib/gitlab/user_access.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/user_access.rb b/lib/gitlab/user_access.rb
index a4a1cccf9d5..c2f61741cc5 100644
--- a/lib/gitlab/user_access.rb
+++ b/lib/gitlab/user_access.rb
@@ -103,9 +103,7 @@ module Gitlab
def branch_allows_collaboration_for?(ref)
return false if skip_collaboration_check
- # Checking for an internal project or group to prevent an infinite loop:
- # https://gitlab.com/gitlab-org/gitlab/issues/36805
- (!project.internal? && project.branch_allows_collaboration?(user, ref))
+ project.branch_allows_collaboration?(user, ref)
end
def permission_cache