Skip to content

Commit

Permalink
Disable voting (fixes php#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Jul 20, 2024
1 parent 156851d commit 511cbc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion www/bug.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions www/vote.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 511cbc9

Please sign in to comment.