mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Let co-maintainers unflag the package
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
5eb7354e7d
commit
a5fd2bb39d
2 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue