-
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
[HOLD for payment 2023-11-16] [$500] public room as anonymous user can able to edit profile #28925
Comments
Job added to Upwork: https://www.upwork.com/jobs/~017b639bc83b99b494 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @burczu ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
ResultScreencast.from.05-10-2023.23.52.27.webm |
ProposalPlease re-state the problem that we are trying to solve in this issue.Unauthorized access to screens after manual input of url. What is the root cause of that problem?When visiting a public chat room, user is being logged in as anonymous user and because of this the user is granted access to all AuthScreens as shown in this App/src/libs/Navigation/AppNavigator/index.js Lines 10 to 17 in 389d7b0
All AuthScreens are accessible by anonymous users until the function App/src/pages/home/sidebar/SidebarLinks.js Lines 155 to 160 in 389d7b0
The This What changes do you think we should make in order to solve the problem?Add a new function to Session/index.js that will redirect user to sign in if the user is anonymous e.g., // src/libs/actions/Session/index.js
function redirectToSignInIfAnonymous() {
if (isAnonymousUser()) {
signOutAndRedirectToSignIn();
}
} And make use of it within RightModalNavigator.js like so: // src/libs/Navigation/AppNavigator/Navigators/RightModalNavigator.js
import * as Session from '../../../../libs/actions/Session';
function RightModalNavigator(props) {
const {isSmallScreenWidth} = useWindowDimensions();
useEffect(() => Session.redirectToSignInIfAnonymous(), []);
// ... This will ensure that the user is redirected upon initial mounting of the screen. What alternative solutions did you explore? (Optional)
<Stack.Screen
name="Settings"
component={isAnonymousUser ? ModalStackNavigators.SignInModalStackNavigator : ModalStackNavigators.SettingsModalStackNavigator}
/> |
not overdue - I'll review proposals soon |
I've just checked both proposals. The one from @redpanda-bit is working only partially: when we type address like In terms of the proposal form @DylanDylann, his main solution is working, so I think we can consider proceeding with it (just to note: his alternative solution has the same problem as described above, so shouldn't be considered). 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @stitesExpensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
So to confirm, is this only a front end problem? You can't actually change any settings right? |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @pradeepmdk 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
This issue has not been updated in over 15 days. @burczu, @stitesExpensify, @DylanDylann 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! |
@stitesExpensify The PR is merged |
Triggered auto assignment to @alexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
This was deployed and should be ready for payment in two days, the automation misbehaved. |
@mountiny - is there an agreed to payment amount here or is it the standard rate of $500? Thanks for the update! |
I think standard |
Here is the payment summary:
*If applicable, the bonuses will be applied on the final payment Extra Notes regarding payment: N/A |
Closing - everyone has been paid via Upwork |
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:
we should show login modal
Actual Result:
able to edit the profile
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.78-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.480.mp4
Expensify/Expensify Issue URL:
Issue reported by: @pradeepmdk
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696437761564489
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: