From 601c08ec7417d33be22568444748b30efe41ba6e Mon Sep 17 00:00:00 2001 From: Suzanne Lee Date: Tue, 23 Nov 2021 12:00:27 -0500 Subject: [PATCH] update if hasReadPermissions conditions --- php/libraries/NDB_BVL_Feedback.class.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/libraries/NDB_BVL_Feedback.class.inc b/php/libraries/NDB_BVL_Feedback.class.inc index 28abd61d51d..2792dfe2840 100644 --- a/php/libraries/NDB_BVL_Feedback.class.inc +++ b/php/libraries/NDB_BVL_Feedback.class.inc @@ -502,7 +502,7 @@ class NDB_BVL_Feedback $qparams['ComID'] = $this->_feedbackCandidateProfileInfo['CommentID']; } - if (!$hasReadPermission===true) { + if (!$hasReadPermission) { $query .= " AND FIND_IN_SET(s.CenterID, :CentID)"; $qparams['CentID'] = implode(',', $user->getCenterIDs()); } @@ -606,7 +606,7 @@ class NDB_BVL_Feedback // DCC users should be able to see THEIR OWN inactive threads, // other users should see only active threads - if ($hasReadPermission===true) { + if ($hasReadPermission) { $query .= " AND (ft.Active='Y' OR (ft.Active='N' AND ft.UserID=:Username) )";