summaryrefslogtreecommitdiffstats
path: root/web/template/pkgbase_actions.php
diff options
context:
space:
mode:
authorMark Weiman <mark.weiman@markzz.com>2018-02-06 03:54:56 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2018-02-24 14:57:31 +0100
commitf15c700ad2ed2f5512a5574ab29f85c4848039e4 (patch)
treebc9232112070ce82dc18c4d5e5d7c0484187cad7 /web/template/pkgbase_actions.php
parent27654afadb5088dda4eafd83f07410c2a48fa4b0 (diff)
downloadaur-f15c700ad2ed2f5512a5574ab29f85c4848039e4.tar.gz
aur-f15c700ad2ed2f5512a5574ab29f85c4848039e4.tar.xz
Add capability for co-maintainers to disown packages
Implements FS#53832. Signed-off-by: Mark Weiman <mark.weiman@markzz.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/template/pkgbase_actions.php')
-rw-r--r--web/template/pkgbase_actions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkgbase_actions.php b/web/template/pkgbase_actions.php
index d3f05921..5eee5478 100644
--- a/web/template/pkgbase_actions.php
+++ b/web/template/pkgbase_actions.php
@@ -41,7 +41,7 @@
<?php if ($uid && $row["MaintainerUID"] === NULL): ?>
<li><?= html_action_form($base_uri . 'adopt/', "do_Adopt", __('Adopt Package')) ?></li>
- <?php elseif (has_credential(CRED_PKGBASE_DISOWN, array($row["MaintainerUID"]))): ?>
+ <?php elseif (has_credential(CRED_PKGBASE_DISOWN, array_merge(array($row["MaintainerUID"]), pkgbase_get_comaintainer_uids(array($base_id))))): ?>
<li><?= html_action_form($base_uri . 'disown/', "do_Disown", __('Disown Package')) ?></li>
<?php endif; ?>
</ul>