-
- Downloads
Rename `create_merge_request` permissions
So we can distinguish between the permissions on the source and the target project. - `create_merge_request_from` indicates a user can create a merge request with the project as a source_project - `create_merge_request_in` indicates a user can create a merge request with the project as a target_project
Showing
- app/controllers/projects/application_controller.rb 1 addition, 1 deletionapp/controllers/projects/application_controller.rb
- app/controllers/projects/issues_controller.rb 1 addition, 1 deletionapp/controllers/projects/issues_controller.rb
- app/controllers/projects/merge_requests/creations_controller.rb 1 addition, 1 deletion...ntrollers/projects/merge_requests/creations_controller.rb
- app/helpers/blob_helper.rb 3 additions, 3 deletionsapp/helpers/blob_helper.rb
- app/helpers/compare_helper.rb 1 addition, 1 deletionapp/helpers/compare_helper.rb
- app/policies/project_policy.rb 6 additions, 5 deletionsapp/policies/project_policy.rb
- app/presenters/merge_request_presenter.rb 1 addition, 1 deletionapp/presenters/merge_request_presenter.rb
- app/services/merge_requests/create_service.rb 2 additions, 2 deletionsapp/services/merge_requests/create_service.rb
- app/views/projects/branches/_branch.html.haml 1 addition, 1 deletionapp/views/projects/branches/_branch.html.haml
- app/views/projects/issues/_new_branch.html.haml 1 addition, 1 deletionapp/views/projects/issues/_new_branch.html.haml
- app/views/projects/merge_requests/index.html.haml 1 addition, 1 deletionapp/views/projects/merge_requests/index.html.haml
- db/fixtures/development/10_merge_requests.rb 6 additions, 2 deletionsdb/fixtures/development/10_merge_requests.rb
- spec/policies/project_policy_spec.rb 7 additions, 6 deletionsspec/policies/project_policy_spec.rb
Please register or sign in to comment