From 3b61c68018d993f20dfd9be0376c4bd0f4d02b78 Mon Sep 17 00:00:00 2001 From: Alexander Mechler Date: Wed, 19 Oct 2022 12:54:22 -0700 Subject: [PATCH] Show reports where there is a guide / sdr --- src/libs/ReportUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 94bf06fc2d1fa..15095f980246c 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -940,8 +940,8 @@ function shouldReportBeInOptionList(report, reportIDFromRoute, isInGSDMode, curr return true; } - // Include default rooms unless you're on the default room beta - if (isDefaultRoom(report) && !Permissions.canUseDefaultRooms(betas)) { + // Include default rooms unless you're on the default room beta, unless you have an assigned guide + if (isDefaultRoom(report) && !Permissions.canUseDefaultRooms(betas) && !this.hasExpensifyGuidesEmails(lodashGet(report, ['participants'], []))) { return false; }