Fix: Make "From" link non-clickable when user lacks parent report access#73471
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@abzokhattab It seems that the link is non-clickable in the reports page even when the user has access: Screen.Recording.2025-10-29.at.10.56.51.mov |
|
strange ... should we rely on |
|
@abzokhattab Yeah that seems like a better idea. |
|
Okay, I used the condition used in the issue I reverted i am not able to reproduce the issue from my side. Can you please recheck? |
b47bad4 to
9d4f68c
Compare
|
@Ollyws looks like we're waiting for you to confirm based on the comment here — #73471 (comment). Thanks! |
|
Apologies for the delay will review today. |
|
@abzokhattab I'm getting some strange behaviour here, If I clear the cache and load the report of which the user doesn't have access, the original bug occurs. Then if I refresh that page again the subtitle disappears completely: Screen.Recording.2025-11-04.at.17.30.43.mov |
|
might be because we are checking if the value is not |
|
using so i got back to using please let me know if u have any concerns @Ollyws |
JmillsExpensify
left a comment
There was a problem hiding this comment.
These improvements around a visible, non-clickable from sub-header look good from a product perspective.
|
@abzokhattab Thanks for the update but I'm still getting the same issue: Screen.Recording.2025-11-13.at.13.46.21.mov |
|
needed to provide the report id in the params to get the current report, now its working as expected in the expense and search also when i clear cache ... can you please check and let me know if there is any comments @Ollyws |
…le-from-link-no-access
|
@abzokhattab Thanks for the update, but for test 2 I'm still getting this problem: Screen.Recording.2025-11-24.at.11.22.07.mov |
|
Weird... there must be something wrong with my setup ... let me check |
|
i think we can only depend on the |
|
@abzokhattab Thanks for the update but the links are still accessible from the search page: Screen.Recording.2025-11-25.at.12.32.10.mov |
|
how should it be solved ? all approaches has flaws seems like? @Ollyws |
…le-from-link-no-access
|
i think there is data inconsistency between report and search pages thats why this occur .... I think we need backend changes for this but let me know what u think if there are any other workaround without the BE change @Ollyws |
|
kind reminder on the comment above @Ollyws |
|
Actually I can no longer reproduce that, seems to be working for me now. |
Reviewer Checklist
Screenshots/Videos |
Ollyws
left a comment
There was a problem hiding this comment.
LGTM but we have some conflicts.
|
resolved the conflicts. |
|
@aldo-expensify All yours! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 9.2.67-0 🚀
|
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 9.2.70-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.70-0 🚀
|





Explanation of Change
Fixed Issues
$ #70780
PROPOSAL: #70780 (comment)
Tests
Test 1:
Test 2, ensure that this issue is not reproducible #67930:
Precondition:
User A invites User B to the workspace
User A has added User B as a vacation delegate in Account > Status > Vacation delegate
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-10-25.at.00.10.34.mov
Screen.Recording.2025-10-25.at.00.16.25.mov
MacOS: Desktop