Fix NoMethodError when deleting merged branches via API
What does this MR do and why?
Contributes to #568854 (closed)
Problem
DELETE ':id/repository/merged_branches' requires push permissions to
the project but they are not enforced.
Solution
Add missing push_code permissions check
References
NoMethodError when deleting merged branches via... (#568854 - closed)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #568854 (closed)