[web-bugs] master: Only show 'Add a Pull Request' to logged in users

From: Date: Tue, 10 Sep 2024 21:30:35 +0000
Subject: [web-bugs] master: Only show 'Add a Pull Request' to logged in users
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-32072@lists.php.net to get a copy of this message
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

« previous php.webmaster (#32072) next »