-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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] Upgrade - Invited user can access upgrade page via /upgrade/report-fields path #47904
Comments
Triggered auto assignment to @dylanexpensify ( |
We think that this bug might be related to #wave-control |
@dylanexpensify 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 |
Edited by proposal-police: This proposal was edited at 2024-08-23T11:20:13Z. ProposalPlease re-state the problem that we are trying to solve in this issue.The invited user, who is not an admin, is able to access the upgrade page. What is the root cause of that problem?The root cause of this problem is this check in App/src/pages/workspace/upgrade/WorkspaceUpgradePage.tsx Lines 69 to 71 in 259a9b7
which only returns the not found page if the policy or feature doesn't exist. What changes do you think we should make in order to solve the problem?Updating this check to be something like: App/src/pages/workspace/upgrade/WorkspaceUpgradePage.tsx Lines 34 to 40 in 6488908
What alternative solutions did you explore? (Optional)An alternative solution I explored was wrapping the page with the |
ProposalPlease re-state the problem that we are trying to solve in this issue.Upgrade page opens although the workspace cannot be upgraded by the invited user. What is the root cause of that problem?We only display the not found page if the App/src/pages/workspace/upgrade/WorkspaceUpgradePage.tsx Lines 69 to 72 in 6488908
What changes do you think we should make in order to solve the problem?We should only show this page for the admin of the policy and we also need to prevent calling the API from To cleaner we can create a variable that checks whether the not found page should show or not
And use this variable to show the not found page here and prevent calling
What alternative solutions did you explore? (Optional)For the case showing not found page, we can use |
Proposal |
@dylanexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~01819a1e2aa1e41f2a |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @paultsimura ( |
Triggered auto assignment to @tgolen, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @paultsimura 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @mkzie2 You have been assigned to this job! |
Deployed to production: #48256 (comment) |
Regression Test Proposal
Do we agree 👍 or 👎 |
Payment summary: Contributor: @mkzie2 $250 Please apply/request! |
bump @mkzie2 ! |
@dylanexpensify Sorry for missing this. Could you help send an offer to my account at https://www.upwork.com/freelancers/~019f73367b03c6d784 ? |
Ah all good! Invite sent @mkzie2!! |
@dylanexpensify Thank you, I accepted the invite |
This issue has not been updated in over 15 days. @tgolen, @paultsimura, @dylanexpensify, @mkzie2 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! |
@dylanexpensify can we close this one? |
@mkzie2 pending offer accepting |
@dylanexpensify Hey thanks! I accepted |
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.24-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
Not here page will open because the invited user should not be able to access or upgrade the workspace.
Actual Result:
Upgrade page opens although the workspace cannot be upgraded by the invited user.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6580087_1724397892801.20240823_152130.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @paultsimuraThe text was updated successfully, but these errors were encountered: