From ff4f3af28342a58ec68cec5b06c35814181e2d85 Mon Sep 17 00:00:00 2001 From: Jim Mason Date: Thu, 12 Oct 2023 18:28:24 +0100 Subject: [PATCH] finessed previous commit for case reviews published under own name --- engine/impl/Review.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/impl/Review.php b/engine/impl/Review.php index ad279c98..c2c0ac91 100644 --- a/engine/impl/Review.php +++ b/engine/impl/Review.php @@ -123,6 +123,8 @@ public function getActiveReviewers($viewAll = 0, $loggedIn = 0) { $query .= "WHERE u.name = r.user AND r.airname IS NULL "; if(!$viewAll) $query .= "AND ADDDATE(r.created, 12*7) > NOW() "; + if(!$loggedIn) + $query .= "AND r.private = 0 "; $query .= "GROUP BY u.name"; $stmt = $this->prepare($query);