summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2017-12-21 04:27:43 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2017-12-23 22:51:39 +0100
commitac29097ce8585b99ebe7c5d9570b0567236d45f3 (patch)
tree430668e913d87373be4d251a3f71f9f0e9269a21
parenta04fe6a13ec772c948efa67e0dcd46eefa834e63 (diff)
downloadaur-ac29097ce8585b99ebe7c5d9570b0567236d45f3.tar.gz
aur-ac29097ce8585b99ebe7c5d9570b0567236d45f3.tar.xz
Fix regression that stopped maintainers from pinning comments
In commit 8c98db0b82cc85a4498589e5d60299fefd93b421 support was added for package co-maintainers to pin comments in addition to maintainers. Due to a typo, the SQL query was reset halfway through and only added the co-maintainer IDs to the list of allowed users. Fixes FS#56783. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--web/lib/pkgfuncs.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index dbcf63e8..d022ebe5 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -100,7 +100,7 @@ function can_pin_comment($comment_id=0) {
$q.= "LEFT JOIN PackageComments AS pc ON pb.ID = pc.PackageBaseID ";
$q.= "WHERE pc.ID = " . intval($comment_id) . " ";
$q.= "UNION ";
- $q = "SELECT pcm.UsersID FROM PackageComaintainers AS pcm ";
+ $q.= "SELECT pcm.UsersID FROM PackageComaintainers AS pcm ";
$q.= "LEFT JOIN PackageComments AS pc ";
$q.= "ON pcm.PackageBaseID = pc.PackageBaseID ";
$q.= "WHERE pc.ID = " . intval($comment_id);