diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-20 12:44:37 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-20 14:27:00 +0200 |
commit | a5fd2bb39d8bb655ffcc05decec0bdba3eda7e75 (patch) | |
tree | aa94a7638a8a0cb04fe2e63c4c6aee05284824cc /web/lib/pkgbasefuncs.inc.php | |
parent | 5eb7354e7d67833ec3ef582bb9ef74550f60f318 (diff) | |
download | aurweb-a5fd2bb39d8bb655ffcc05decec0bdba3eda7e75.tar.xz |
Let co-maintainers unflag the package
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib/pkgbasefuncs.inc.php')
-rw-r--r-- | web/lib/pkgbasefuncs.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php index d12a228..d9185e7 100644 --- a/web/lib/pkgbasefuncs.inc.php +++ b/web/lib/pkgbasefuncs.inc.php @@ -411,7 +411,8 @@ function pkgbase_unflag($base_ids) { $q.= "OutOfDateTS = NULL "; $q.= "WHERE ID IN (" . implode(",", $base_ids) . ") "; - if (!has_credential(CRED_PKGBASE_UNFLAG)) { + $maintainers = array_merge(pkgbase_maintainer_uids($base_ids), pkgbase_get_comaintainer_uids($base_ids)); + if (!has_credential(CRED_PKGBASE_UNFLAG, $maintainers)) { $q.= "AND MaintainerUID = " . $uid; } |