From a5fd2bb39d8bb655ffcc05decec0bdba3eda7e75 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 20 Jun 2015 12:44:37 +0200 Subject: Let co-maintainers unflag the package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg Signed-off-by: Lukas Fleischer --- web/lib/pkgbasefuncs.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/lib/pkgbasefuncs.inc.php') 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; } -- cgit v1.2.3-54-g00ecf