[aur-dev] [PATCH] Show co-maintainers ssh clone url on pkgbase page

Mark Weiman mark.weiman at markzz.com
Mon Jan 23 05:18:22 UTC 2017


On pkgbase pages, if a co-maintainer visits, only the read-only url is
displayed which is inconsistent with how the individual packages of a pkgbase's
pages displays them. This adds the ssh clone url to the pkgbase's page for
co-maintainers to see.

Implements: FS#52675

Signed-off-by: Mark Weiman <mark.weiman at markzz.com>
---
 web/template/pkgbase_details.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/template/pkgbase_details.php b/web/template/pkgbase_details.php
index 1012c4e..ecfc42f 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>
-- 
2.11.0


More information about the aur-dev mailing list