-
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
[HOLD for payment 2023-12-28] [$500] Task - user can can edit task details even if user is not assigned nor task creator #31863
Comments
Triggered auto assignment to @isabelastisser ( |
Job added to Upwork: https://www.upwork.com/jobs/~011716884c6ff12695 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Task - user can can edit task details even if user is not assigned nor task creator What is the root cause of that problem?Let's see the condition to modify the task Line 875 in d985a0e
Because the members of the workspace have permission to comment to announce the room, as above condition they also edit the report in that room Let's this PR: #23971 What changes do you think we should make in order to solve the problem?We need to add a condition to check if It is a policy room (announce room), we will only allow the admin of the policy or the assignee to edit the task
If we want to do the same behavior in normal room, we will update to use What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Member of workspace (not admin) is allowed to edit a task they are not assigned to What is the root cause of that problem?During canModifyTask, the check is not correct, as it only validates the user is a part of any parent (as per comments its only supposed to be #admins
What changes do you think we should make in order to solve the problem?Within canModifyReport it should be added (as per notes) that the parent report is an #admins only, or they are a policy admin
What alternative solutions did you explore? (Optional)N/A |
@DylanDylann's proposal LGTM however I think we should also add the ability for the creator of the task to edit it not just the admin/assignee. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Currently, we have logic to make sure that creator and assignee always have permission to edit task Line 880 in 48e0c1e
|
📣 @Ollyws 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@aldo-expensify @Ollyws
|
@Ollyws The PR is ready for review |
@DylanDylann I think it makes sense that only the assignee, creator, and admin should be able to edit the task in all rooms. Let me know if you disagree @aldo-expensify. |
That makes sense to me too! |
@Ollyws I did that in my PR. Please help to review. |
@Ollyws please provide an update. Thanks! |
PR was merged a few days ago. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.14-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-12-28. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@Ollyws, @isabelastisser, @aldo-expensify, @DylanDylann Huh... This is 4 days overdue. Who can take care of this? |
1 similar comment
@Ollyws, @isabelastisser, @aldo-expensify, @DylanDylann Huh... This is 4 days overdue. Who can take care of this? |
@Ollyws, please complete the checklist above so I can close the issue. Thanks! I will process the payments in Upwork. |
BugZero Checklist:
https://github.com/Expensify/App/pull/23971/files#r1440342282
N/A
Yes. |
Regression Test Proposal
Do we agree 👍 or 👎 |
All set! |
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: 1.4.3-0
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Only task creator or assignee can edit the task details
Actual Result:
Anyone from room can edit the task details
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6286742_1700717240618.Screen_Recording_2023-11-22_at_12.47.35_PM.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: