mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
4b616e20ba
commit
78ace0914e
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ function user_table($user, $dbh)
|
||||||
# If the user is a TU calculate the number of the packages
|
# If the user is a TU calculate the number of the packages
|
||||||
$atype = account_from_sid($_COOKIE["AURSID"]);
|
$atype = account_from_sid($_COOKIE["AURSID"]);
|
||||||
|
|
||||||
if ($atype == 'Trusted User') {
|
if (($atype == 'Trusted User') || ($atype == 'Developer')) {
|
||||||
$result = db_query(sprintf($base_q, 'community'), $dbh);
|
$result = db_query(sprintf($base_q, 'community'), $dbh);
|
||||||
$row = mysql_fetch_row($result);
|
$row = mysql_fetch_row($result);
|
||||||
$maintainer_community_count = $row[0];
|
$maintainer_community_count = $row[0];
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php if ($atype == 'Trusted User'): ?>
|
<?php if (($atype == 'Trusted User') || ($atype == 'Developer')) : ?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='boxSoft'>
|
<td class='boxSoft'>
|
||||||
|
|
Loading…
Add table
Reference in a new issue