-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
User can click on checkbox in public room task #25480
Comments
Triggered auto assignment to @mallenexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Proposal by @BhuvaneshPatilPlease re-state the problem that we are trying to solve in this issue.User can click on checkbox in public room task but reverting back What is the root cause of that problem?We are only checking the following condition to disable checkbox in the
It doesn't check if user is anonymous or not. What changes do you think we should make in order to solve the problem?
onPress={Session.checkIfActionIsAllowed(() =>isCompleted ? Task.reopenTask(props.report, taskTitle) : Task.completeTask(props.report, taskTitle))} for
With can modify task, we can add another check if current session is anonymous or not. App/src/libs/actions/Session/index.js Lines 87 to 89 in fdcae9f
Using above method we can have a check if it's anonymous user or not. const canModifyTask = !Session.isAnonymousUser() && Task.canModifyTask(props.report, props.session.accountID); And use above variable to disable the checkbox Similar to above change we can add same in For above approach we will need to pass session using props. Other places it's implemented using - personalDetails of current user, in that case we need to use We can add similar logic to check if user is anonymous or not at other places to disable inputs in What alternative solutions did you explore? (Optional) |
@mallenexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@BhuvaneshPatil When I try to test, I keep getting redirected to the login screen and not sent to the report Can you test with the above links to see if you can reproduce plz? |
I just checked, this bug was solved recently by some other PR. |
@mallenexpensify Eep! 4 days overdue now. Issues have feelings too... |
Thanks @BhuvaneshPatil |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
User should be redirected to sign in page as we do in case of title and description
Actual Result:
Checkbox is not disabled and user is not redirected to sign in page
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.55-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Recording.1255.mp4
Screen.Recording.2023-08-08.at.12.35.38.PM.1.mov
Expensify/Expensify Issue URL:
Issue reported by: @BhuvaneshPatil
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691478679057629
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: