Author: Jim Winstead (jimwins)
Date: 2024-09-10T14:28:23-07:00

Commit: 
https://github.com/php/web-bugs/commit/c9451f7a9615e59bccc82cdcdc04b028051d2044
Raw diff: 
https://github.com/php/web-bugs/commit/c9451f7a9615e59bccc82cdcdc04b028051d2044.diff

Only show 'Add a Pull Request' to logged in users

Changed paths:
  M  www/bug.php


Diff:

diff --git a/www/bug.php b/www/bug.php
index 1c12c4a1..a1d74d4f 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -1113,7 +1113,9 @@
     echo "<h2>Pull Requests</h2>\n";
 
     require "{$ROOT_DIR}/templates/listpulls.php";
-    echo "<p><a href='gh-pull-add.php?bug_id={$bug_id}'>Add a Pull 
Request</a></p>";
+    if ($logged_in) {
+        echo "<p><a href='gh-pull-add.php?bug_id={$bug_id}'>Add a Pull 
Request</a></p>";
+    }
 }
 
 // Display comments

Reply via email to