summaryrefslogtreecommitdiffstats
path: root/web/html/tu.php
diff options
context:
space:
mode:
authorBalló György <ballogyor@gmail.com>2014-01-10 20:09:28 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-01-11 12:08:51 +0100
commitd8ea2d4a02a935a0e1c21605facfef5aa6b35acd (patch)
tree6ee4390e4822e72bd8f08e21c3e57a903c17e5d9 /web/html/tu.php
parentcc490ce8d6ec2b727aa18b5bacbbd60d0d739c27 (diff)
downloadaur-d8ea2d4a02a935a0e1c21605facfef5aa6b35acd.tar.gz
aur-d8ea2d4a02a935a0e1c21605facfef5aa6b35acd.tar.xz
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>
Diffstat (limited to 'web/html/tu.php')
-rw-r--r--web/html/tu.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/html/tu.php b/web/html/tu.php
index a6aa292e..5d4e37dc 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -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.");