-
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
[$250] Expense - User invited to the expense report can hold the expenses #48306
Comments
Triggered auto assignment to @abekkala ( |
@abekkala FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expense - User invited to the expense report can hold the expenses What is the root cause of that problem?The Lines 3071 to 3085 in a37a613
What changes do you think we should make in order to solve the problem?We have few options to resolve this:
if (!isAdmin && !isApprover && !isActionOwner) {
return {canHoldRequest: false, canUnholdRequest: false};
} NOTE: Minor refactor may be required if we go with any of the solution above. What alternative solutions did you explore? (Optional)Result |
@abekkala Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@abekkala Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~021831812891788709823 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
ProposalPlease re-state the problem that we are trying to solve in this issueExpense - User invited to the expense report can hold the expenses What is the root cause of that problem?The problem arises because the system currently does not properly verify if the logged-in user is the same as the creator of the expense. This results in users who did not create the expense being able to access or hold it, violating access control rules. What changes do you think we should make in order to solve the problem?To fix this issue, we need to update the function responsible for opening the "hold" modal. The change will ensure that access is granted only if the email of the logged-in user matches the email of the user who created the expense.The following changes in the component should resolve the issue: Update Access Logic: Modify the function that handles opening the hold modal to verify that the logged-in user's email matches the expense creator's email (reportAction.email). Conditional Access: Implement conditional logic to ensure that only users with matching emails are allowed to proceed. Following changes will fix the issue: 365193203-876ce5fa-0b1b-4b19-b67a-54cfeeb9fef0.1.mp4 |
@abekkala, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@abdulrahuman5196 can you please review the proposal? |
@abekkala, @abdulrahuman5196 Eep! 4 days overdue now. Issues have feelings too... |
@abdulrahuman5196, do you have any comments on the proposal you've reviewed? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@abekkala, @abdulrahuman5196 Huh... This is 4 days overdue. Who can take care of this? |
Sorry for the delay. Checking now. |
@abekkala The backend API to hold/unhold is also passing. @Krishna2323 solution could fix the problem in frontend but still for backend we need internal fix. Could you loop in internal engineer for this issue? |
@abdulrahuman5196 @abekkala, can't we just add the C+ reviewed label so that the internal engineer is auto assigned? |
@Krishna2323 no, hot picks require an internal engineer volunteer to pick up (typically someone who would be familiar with the feature) vs. an engineer being auto assigned. |
@abekkala, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@abekkala, @abdulrahuman5196 Still overdue 6 days?! Let's take care of this! |
@abekkala, @abdulrahuman5196 Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
@abekkala, @abdulrahuman5196 10 days overdue. Is anyone even seeing these? Hello? |
still waiting on internal pick up |
This issue has not been updated in over 14 days. @abekkala, @abdulrahuman5196 eroding to Weekly issue. |
Issue not reproducible during KI retests. (First week) |
Issue not reproducible during KI retests. (Second week) |
I'll wait until the 3rd week of attempted retest before closing |
This issue has not been updated in over 15 days. @abekkala, @abdulrahuman5196 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Issue not reproducible during KI retests. (Third week) |
@abekkala I think this issue should be partially compensated since were already having an approved proposal but waiting on internal engineer assignment - #48306 (comment). |
Triggered auto assignment to @mjasikowski, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Sorry @mjasikowski, I think the melvin bot wrongly assigned you since the c+ approved emoji was present |
@abekkala Gentle ping on this |
@abekkala, friendly bump to check this comment |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.0.26-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp https://expensify.testrail.io/index.php?/tests/view/4901045
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Invited user (User C) should not be able to hold the expenses.
Actual Result:
Invited user can hold the expenses.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6586341_1724925332136.20240829_174948.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @abdulrahuman5196The text was updated successfully, but these errors were encountered: