[aur-dev] [PATCH 4/4] Let co-maintainers see the private clone URI
Johannes Löthberg
johannes at kyriasis.com
Sat Jun 20 10:44:39 UTC 2015
Signed-off-by: Johannes Löthberg <johannes at kyriasis.com>
---
web/template/pkg_details.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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>
--
2.4.4
More information about the aur-dev
mailing list