summaryrefslogtreecommitdiff
path: root/spec/features/merge_request/user_tries_to_access_private_repository_through_new_mr_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Validate projects in MR build serviceBob Van Landuyt2018-12-141-0/+37
This validates the correct abilities for both projects. Only `read_project` isn't enough: For the `source_project` we validate `create_merge_request_from` this also validates that the user has developer access to the project. For the `target_project` we validate `create_merge_reqeust_in` this also validates that the user has access to the project's repository. To avoid generating diffs for unrelated projects we also validate that the projects are in the same fork network now.