From f81cccb5af29ba0b4c016ae73f65edb23a1bc3f2 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Thu, 9 Feb 2023 10:18:11 -0300 Subject: [PATCH 1/2] disable send money in workspace chats --- src/pages/home/report/ReportActionCompose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionCompose.js b/src/pages/home/report/ReportActionCompose.js index 9c5ec671cb74..2cb1b44c1a28 100644 --- a/src/pages/home/report/ReportActionCompose.js +++ b/src/pages/home/report/ReportActionCompose.js @@ -301,7 +301,7 @@ class ReportActionCompose extends React.Component { text: this.props.translate('iou.requestMoney'), onSelected: () => Navigation.navigate(ROUTES.getIouRequestRoute(this.props.reportID)), }, - ...(Permissions.canUseIOUSend(this.props.betas) + ...((Permissions.canUseIOUSend(this.props.betas) && !ReportUtils.isPolicyExpenseChat(this.props.report)) ? [ { icon: Expensicons.Send, From da83581ecbaf867106a31a1eb71a916aa0dba39d Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Thu, 9 Feb 2023 10:21:26 -0300 Subject: [PATCH 2/2] update comment --- src/pages/home/report/ReportActionCompose.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionCompose.js b/src/pages/home/report/ReportActionCompose.js index 2cb1b44c1a28..4075e50b3b37 100644 --- a/src/pages/home/report/ReportActionCompose.js +++ b/src/pages/home/report/ReportActionCompose.js @@ -294,7 +294,8 @@ class ReportActionCompose extends React.Component { ]; } - // DM chats and workspace chats that only have 2 people will see the Send / Request money options. + // DM chats that only have 2 people will see the Send / Request money options. + // Workspace chats should only see the Request money option, as "easy overages" is not available. return [ { icon: Expensicons.MoneyCircle,