Commit ac29097c authored by Eli Schwartz's avatar Eli Schwartz Committed by Lukas Fleischer
Browse files

Fix regression that stopped maintainers from pinning comments

In commit 8c98db0b

 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's avatarEli Schwartz <>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent a04fe6a1
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment