summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-06-20 12:44:39 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-20 14:27:00 +0200
commit885a2d2dcad7f0651350ea55af3fca85b8ea33d3 (patch)
treee3e9be6af1b27d60d908590e47f6e97b4f200d20
parent918f00f9a2a0f049f6582083c68e2cef1ce868e9 (diff)
downloadaurweb-885a2d2dcad7f0651350ea55af3fca85b8ea33d3.tar.xz
Let co-maintainers see the private clone URI
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--web/template/pkg_details.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 9a360e3..82bc262 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -178,7 +178,7 @@ $sources = pkg_sources($row["ID"]);
<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>