summaryrefslogtreecommitdiffstats
path: root/web/lib/acctfuncs.inc.php
diff options
context:
space:
mode:
authorBalló György <ballogyor@gmail.com>2014-08-02 14:18:45 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-08-02 15:25:46 +0200
commit92e827330c023f9f22f4483d5b04b0708120c18a (patch)
treeb6c17c6fe21e80b39c03f2dc28b3ff03e92c4cb6 /web/lib/acctfuncs.inc.php
parent6d5c9365408ca0969e5911bd118ccc56266a6ac1 (diff)
downloadaur-92e827330c023f9f22f4483d5b04b0708120c18a.tar.gz
aur-92e827330c023f9f22f4483d5b04b0708120c18a.tar.xz
Count users in "Trusted User & Developer" group as TU
This reflects the changes in 3610f3c. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/acctfuncs.inc.php')
-rw-r--r--web/lib/acctfuncs.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index d24423f0..254f0e2f 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -605,7 +605,7 @@ function open_user_proposals($user) {
function add_tu_proposal($agenda, $user, $votelength, $quorum, $submitteruid) {
$dbh = DB::connect();
- $q = "SELECT COUNT(*) FROM Users WHERE AccountTypeID = 2";
+ $q = "SELECT COUNT(*) FROM Users WHERE (AccountTypeID = 2 OR AccountTypeID = 4)";
$result = $dbh->query($q);
$row = $result->fetch(PDO::FETCH_NUM);
$active_tus = $row[0];
@@ -1021,7 +1021,7 @@ function last_votes_list() {
$q = "SELECT UserID, MAX(VoteID) AS LastVote FROM TU_Votes, ";
$q .= "TU_VoteInfo, Users WHERE TU_VoteInfo.ID = TU_Votes.VoteID AND ";
$q .= "TU_VoteInfo.End < UNIX_TIMESTAMP() AND ";
- $q .= "Users.ID = TU_Votes.UserID AND Users.AccountTypeID = 2 ";
+ $q .= "Users.ID = TU_Votes.UserID AND (Users.AccountTypeID = 2 OR Users.AccountTypeID = 4) ";
$q .= "GROUP BY UserID ORDER BY LastVote DESC, UserName ASC";
$result = $dbh->query($q);