Skip to content

Commit

Permalink
update if hasReadPermissions conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
suzanne-lee authored and ridz1208 committed Mar 28, 2023
1 parent 92e93a2 commit 601c08e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/libraries/NDB_BVL_Feedback.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down Expand Up @@ -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)
)";
Expand Down

0 comments on commit 601c08e

Please # to comment.