-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD #26538] [$500] Settings - Using deep link, admin can request money to user workspace chat even though its not allowed #26523
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.Using deep link, admin can request money to user workspace chat even though its not allowed What is the root cause of that problem?On the What changes do you think we should make in order to solve the problem?We need to add a validation to show the "Not found" page if the user is not allowed to perform IOU in a specific chat. We need to add a new condition here
What alternative solutions did you explore? (Optional)To determine if the The places where Request Money should be disabled are:
The places where Split Bill should be disabled are:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.App should display 'Hmm its not here' page for request money by deep link by admin in workspace chat as request money option is not available for admin What is the root cause of that problem?We have not checked whether the report is allowed to open modal request money when opened by deep link or not at MoneyRequestSelectorPage like in composer here Therefore, when we open a deeplink, we can open the money request modal in any report. What changes do you think we should make in order to solve the problem?We should check the same as in the composer and add condition here
What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the issueThe request money deep link has no checks to ensure that the action is allowed or not. What is the root cause of this issue?The request money page What changes should be made in order to fix this?We already have a method called Lines 2977 to 2996 in c169952
We should use this function in
const isInvalid = !IOUUtils.isValidMoneyRequestType(iouType) || (props.report && !_.includes(ReportUtils.getMoneyRequestOptions(props.report, reportParticipantIDs, props.betas), iouType));
...
<FullPageNotFoundView shouldShow={isInvalid}>
const reportParticipantIDs = useMemo(
() => _.without(lodashGet(props.report, 'participantAccountIDs', []), props.currentUserPersonalDetails.accountID),
[props.session.accountID, props.report],
);
export default withOnyx({
selectedTab: {
key: `${ONYXKEYS.SELECTED_TAB}_${CONST.TAB.RECEIPT_TAB_ID}`,
},
report: {
key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT}${route.params.reportID}`,
},
betas: {
key: ONYXKEYS.BETAS,
},
session: {
key: ONYXKEYS.SESSION
}
})(MoneyRequestSelectorPage); |
Triggered auto assignment to @sophiepintoraetz ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01fea0f36079525f3d |
Current assignee @sophiepintoraetz is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
@sophiepintoraetz , hmm, curious if there are other normal flows that would cause a user to hit this issue? 😂 |
I appreciate it's not a normal flow but given the world of finance, these are the sort of back doors you want to shore up, so let's fix it. If it is on the back end as well, I'll assign the |
Current assignee @ntdiary is eligible for the Internal assigner, not assigning anyone new. |
@sophiepintoraetz, can you please also add a internal engineer? We need to prohibit such creating requests on the backend (return error code), just like deleting these requests: test.mp4 |
@GItGudRatio, the |
@ntdiary Yeah sure, we can do the optimizations in the PR itself. I believe we need to decide upon the logic only for now, that's why I focused on the flow. |
@ntdiary From the proposals in this issue, please recognise that proposals from @GItGudRatio and @namhihi237 don't cover the case for |
@GItGudRatio, yeah, this is just a small kindly reminder, it would not make me reject your proposal, it's just that if you pay attention to this, it will make me feel you have a good understanding of the flow. : ) |
@esh-g, don't worry, I'm still reviewing these proposals, no final decision yet. Also, @GItGudRatio mentioned logic related to split bill in the alternative solutions. |
Coming from here: #29367 (comment) we also want to prevent send money in group chat or other flows except global create and DM 1:1. |
@ntdiary I think Tim closed the discussion here with a good proposal to move forward, do you think we could apply to this problem as well? |
Current assignee @ntdiary is eligible for the External assigner, not assigning anyone new. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Ahh got it, I will put in on hold as well/ |
Issue not reproducible during KI retests. (First week) |
I see that requesting money seems to be available now for admins both ways (using the + and the link), so should it actually be allowed? I am confused about what's the desired behavior. @sophiepintoraetz Can you maybe bring it up in Slack? It seems admins can request money just fine like anyone else. |
Ah, I missed this before heading OOO - let me catch up where the discussion is and come back to this. |
Yes, I am going to close this issue out - Admins will be able to request money as a part of the invoicing/bill pay flow we are building. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should display 'Hmm its not here' page for request money by deep link by admin in workspace chat as request money option is not available for admin
Actual Result:
App allows to request money by deep link by admin in workspace chat even though request money option is not available for admin
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.61-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
request.money.for.admin.is.available.by.deep.link.mp4
Bandicam.2023-09-01.23-21-57-558.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692943365255729
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sophiepintoraetzThe text was updated successfully, but these errors were encountered: