summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Weiman <mark.weiman@markzz.com>2017-01-23 06:18:22 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2017-01-23 09:29:50 +0100
commit1ed847118222c72c1f97c8217bfce6d29bb99f51 (patch)
tree8cf95d635f69029351085167e5cca8b17a9299b2
parent0b09f200c50cd1e6737f6225b35f0af9d6f8bed8 (diff)
downloadaur-1ed847118222c72c1f97c8217bfce6d29bb99f51.tar.gz
aur-1ed847118222c72c1f97c8217bfce6d29bb99f51.tar.xz
Show co-maintainers SSH clone URL on package base page
On package base pages, if a co-maintainer visits, only the read-only URL is displayed which is inconsistent with how the individual packages of a package base's pages displays them. This adds the SSH clone URL to the package base's page for co-maintainers to see. Implements FS#52675. Signed-off-by: Mark Weiman <mark.weiman@markzz.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--web/template/pkgbase_details.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkgbase_details.php b/web/template/pkgbase_details.php
index fe769596..e368872e 100644
--- a/web/template/pkgbase_details.php
+++ b/web/template/pkgbase_details.php
@@ -50,7 +50,7 @@ $base_uri = get_pkgbase_uri($row['Name']);
<th><?= __('Git Clone URL') . ': ' ?></th>
<td>
<a href="<?= $git_clone_uri_anon ?>"><?= $git_clone_uri_anon ?></a> (<?= __('read-only') ?>)
- <?php if ($uid == $row["MaintainerUID"]): ?>
+ <?php if (in_array($uid, $maintainers)): ?>
<br /> <a href="<?= $git_clone_uri_priv ?>"><?= $git_clone_uri_priv ?></a>
<?php endif; ?>
</td>