gitlab-org--gitlab-foss/app
Stan Hu 1405b9cd50 Fix "Resolve conflicts" button not appearing for some users
Previously the frontend assumed that the user had to be able to merge to
that project in order to resolve conflicts. However, this is overly
restrictive, as the user only has to be able to push to the source
branch. In fact, appending the text /conflicts to the merge request
would bring up the conflict resolution page.

This confusion happens when a project contains a protected branch that
only allows maintainers to push. Users with Developer access no longer
have permission to merge, but they still can create branches in that
project.

To fix this issue, we now loosen the permission check for the "Resolve
conflicts" button and only check for access to push to the source
branch. This is consistent with what the backend does in
MergeRequests::Conflicts::ListService#can_be_resolved_by?.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/47954
2019-06-11 23:18:30 -07:00
..
assets Fix "Resolve conflicts" button not appearing for some users 2019-06-11 23:18:30 -07:00
controllers Revert "Automatically update MR merge-ref along merge status" 2019-06-11 13:08:25 -03:00
finders Remove some deprecated code 2019-06-07 14:32:31 +03:00
graphql Add LFS blob ID to GraphQL blob type 2019-06-10 09:05:44 +01:00
helpers Merge branch 'thomas-nilsson-irfu/gitlab-ce-thomas-nilsson-irfu-master-patch-13137' into 'master' 2019-06-07 13:15:27 +00:00
mailers Apply reviewer suggestions 2019-05-31 20:49:27 +08:00
models Merge branch 'revert-28513' into 'master' 2019-06-11 17:31:31 +00:00
policies API issues - minor cleanup of permission check 2019-06-11 23:12:21 +00:00
presenters Merge branch 'add-lfs-blob-ids-to-tree-type' into 'master' 2019-06-11 10:02:13 +00:00
serializers Add doc links for confidential and locked issues 2019-06-06 10:37:02 +00:00
services Revert "Automatically update MR merge-ref along merge status" 2019-06-11 13:08:25 -03:00
uploaders Remove legacy artifact related code 2019-05-31 10:49:17 +07:00
validators Align UrlValidator to validate_url gem implementation. 2019-04-11 06:29:07 +00:00
views List ssh-ed25519 example 2019-06-10 10:32:36 +00:00
workers Delete unauthorized Todos when project is private 2019-06-05 10:51:52 -03:00