Skip to content

Commit

Permalink
fix: announcement filtering (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
MahfuzulAlam authored May 29, 2024
1 parent 0638535 commit 52b2d37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/model/ListingDashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ public function get_announcements() {
foreach ( $announcements_query->posts as $announcement ) {
$id = $announcement->ID;
$recepents = get_post_meta( $id, '_recepents', true );
$recepents = ! empty( $recepents ) ? explode( ',', $recepents ) : [];

if ( ! empty( $recepents ) && is_array( $recepents ) ) {
if ( ! in_array( $current_user_email, $recepents ) ) {
Expand Down

0 comments on commit 52b2d37

Please sign in to comment.