mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Let co-maintainers edit package keywords
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
a5fd2bb39d
commit
918f00f9a2
2 changed files with 4 additions and 3 deletions
|
@ -957,7 +957,8 @@ function pkgbase_get_keywords($base_id) {
|
|||
function pkgbase_set_keywords($base_id, $keywords) {
|
||||
$base_id = intval($base_id);
|
||||
|
||||
if (!has_credential(CRED_PKGBASE_SET_KEYWORDS, array(pkgbase_maintainer_uid($base_id)))) {
|
||||
$maintainers = array_merge(array(pkgbase_maintainer_uid($base_id)), pkgbase_get_comaintainer_uids(array($base_id)));
|
||||
if (!has_credential(CRED_PKGBASE_SET_KEYWORDS, $maintainers)) {
|
||||
return array(false, __("You are not allowed to edit the keywords of this package base."));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue