Skip to content

Commit c9451f7

Browse files
committed
Only show 'Add a Pull Request' to logged in users
1 parent dc639be commit c9451f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

www/bug.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,9 @@
11131113
echo "<h2>Pull Requests</h2>\n";
11141114

11151115
require "{$ROOT_DIR}/templates/listpulls.php";
1116-
echo "<p><a href='gh-pull-add.php?bug_id={$bug_id}'>Add a Pull Request</a></p>";
1116+
if ($logged_in) {
1117+
echo "<p><a href='gh-pull-add.php?bug_id={$bug_id}'>Add a Pull Request</a></p>";
1118+
}
11171119
}
11181120

11191121
// Display comments

0 commit comments

Comments
 (0)