Skip to content

Commit

Permalink
fix: show field reports for public visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
samshara authored and barshathakuri committed Sep 4, 2024
1 parent 078446e commit 5c7ab88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-clouds-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"go-web-app": patch
---

Display the public visibility field report to public users in [#1743](https://github.com/IFRCGo/go-web-app/issues/1343)
6 changes: 2 additions & 4 deletions app/src/App/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,7 @@ const allFieldReports = customWrapRoute({
wrapperComponent: Auth,
context: {
title: 'All Field Reports',
visibility: 'is-authenticated',
permissions: ({ isGuestUser }) => !isGuestUser,
visibility: 'anything',
},
});

Expand Down Expand Up @@ -1032,8 +1031,7 @@ const fieldReportDetails = customWrapRoute({
wrapperComponent: Auth,
context: {
title: 'Field Report Details',
visibility: 'is-authenticated',
permissions: ({ isGuestUser }) => !isGuestUser,
visibility: 'anything',
},
});

Expand Down

0 comments on commit 5c7ab88

Please sign in to comment.