-
Gary Holtz authored
* Because of https://gitlab.com/gitlab-org/gitlab/issues/36805, the `can_update_branch?` function needs to check for an internal project. Otherwise, `project.branch_allows_collaboration?` gets stuck in a permission checking loop. * Adds a changelog entry * Adds a `Project` spec to check that the loop doesn't happen from the project end. * Also adds a `Gitlab::UserAccess` spec to make sure it doesn't happen there as well. Resolves: https://gitlab.com/gitlab-org/gitlab/issues/36805
dc120801