summaryrefslogtreecommitdiffstats
path: root/web/lib/stats.inc
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-10-06 02:24:57 +0200
committerCallan Barrett <wizzomafizzo@gmail.com>2008-10-06 13:38:10 +0200
commit78ace0914eb6a8c6cc39306ab586ab741aa25187 (patch)
treef01b55e456b01167ba071ee5468208f89026d61b /web/lib/stats.inc
parent4b616e20ba11314616ae42fdcd3f7bf6fbb8c4bd (diff)
downloadaur-78ace0914eb6a8c6cc39306ab586ab741aa25187.tar.gz
aur-78ace0914eb6a8c6cc39306ab586ab741aa25187.tar.xz
Show developer-TUs their total community packages.
This closes: FS#11561 - Devs in AUR can't see their packages in Community Thanks to Hugo Doria for the original patch. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Diffstat (limited to 'web/lib/stats.inc')
-rw-r--r--web/lib/stats.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/stats.inc b/web/lib/stats.inc
index e659210f..6fbc0334 100644
--- a/web/lib/stats.inc
+++ b/web/lib/stats.inc
@@ -29,7 +29,7 @@ function user_table($user, $dbh)
# If the user is a TU calculate the number of the packages
$atype = account_from_sid($_COOKIE["AURSID"]);
- if ($atype == 'Trusted User') {
+ if (($atype == 'Trusted User') || ($atype == 'Developer')) {
$result = db_query(sprintf($base_q, 'community'), $dbh);
$row = mysql_fetch_row($result);
$maintainer_community_count = $row[0];