Browse Source

Enable collaborators to merge pull requests

Co-authored-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
Samyak Jain 1 year ago
parent
commit
c2de90a139
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pagure/templates/repo_pull_request.html

+ 1 - 1
pagure/templates/repo_pull_request.html

@@ -170,7 +170,7 @@
               </a>
               <div id="merge-alert" class="text-xs-center dropdown-menu dropdown-menu-right p-0">
                 <div class="alert text-center mb-0">
-                  {% if g.repo_committer %}
+                  {% if g.authenticated and (g.repo_committer or g.fas_user.username in g.repo.collaborators) %}
                     <small id="merge-alert-message"></small>
                     <form action="{{ url_for('ui_ns.merge_request_pull',
                         repo=repo.name,