[web-bugs] master: Disable voting (fixes #112)
| From: | Christoph M. Becker via Derick Rethans | Date: | Thu, 01 Aug 2024 13:46:15 +0000 |
| Subject: | [web-bugs] master: Disable voting (fixes #112) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-31905@lists.php.net to get a copy of this message | ||
Author: Christoph M. Becker (cmb69)
Committer: Derick Rethans (derickr)
Date: 2024-08-01T14:46:13+01:00
Commit: https://github.com/php/web-bugs/commit/c73a67a69fb6065a1eb90ad772a36462e88f08ea
Raw diff: https://github.com/php/web-bugs/commit/c73a67a69fb6065a1eb90ad772a36462e88f08ea.diff
Disable voting (fixes #112)
Changed paths:
M www/bug.php
M www/vote.php
Diff:
diff --git a/www/bug.php b/www/bug.php
index 407fdd39..f4700b1d 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -1288,5 +1288,5 @@ function control($num, $desc)
function canvote($thanks, $status)
{
- return ($thanks != 4 && $thanks != 6 && $status != 'Closed'
&& $status != 'Not a bug' && $status != 'Duplicate');
+ return false;
}
diff --git a/www/vote.php b/www/vote.php
index e32f21d0..517f7079 100644
--- a/www/vote.php
+++ b/www/vote.php
@@ -3,6 +3,8 @@
use App\Repository\BugRepository;
use App\Repository\VoteRepository;
+die('Voting on tickets is disabled');
+
// Obtain common includes
require_once '../include/prepend.php';