Skip to content

Commit

Permalink
Merge pull request Expensify#43870 from Expensify/jasper-fixLeaveButton
Browse files Browse the repository at this point in the history
Fix deploy blocker where people can leave their own workspace chats
  • Loading branch information
AndrewGable authored Jun 17, 2024
2 parents c4482aa + 02c23d7 commit d27b249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
});
}

if (!isThread && (isGroupChat || (isChatRoom && ReportUtils.canLeaveChat(report, policy)) || (isPolicyExpenseChat && !isPolicyAdmin))) {
if (!isThread && (isGroupChat || (isChatRoom && ReportUtils.canLeaveChat(report, policy)))) {
items.push({
key: CONST.REPORT_DETAILS_MENU_ITEM.LEAVE_ROOM,
translationKey: 'common.leave',
Expand Down

0 comments on commit d27b249

Please sign in to comment.