mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Forbid developers to vote
According to Trusted User Bylaws, TUs (and only TUs) must take part in votes. Developers who want to take part in votes should set their account type to 'Trusted User'. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
cc490ce8d6
commit
d8ea2d4a02
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ if ($atype == "Trusted User" || $atype == "Developer") {
|
|||
if ($isrunning == 0) {
|
||||
$canvote = 0;
|
||||
$errorvote = __("Voting is closed for this proposal.");
|
||||
} else if ($atype == "Developer") {
|
||||
$canvote = 0;
|
||||
$errorvote = __("Only Trusted Users are allowed to vote.");
|
||||
} else if ($row['User'] == username_from_sid($_COOKIE["AURSID"])) {
|
||||
$canvote = 0;
|
||||
$errorvote = __("You cannot vote in an proposal about you.");
|
||||
|
|
Loading…
Add table
Reference in a new issue