Skip to content

Commit 5c7ab88

Browse files
samsharabarshathakuri
authored andcommitted
fix: show field reports for public visibility
1 parent 078446e commit 5c7ab88

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.changeset/tough-clouds-sniff.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"go-web-app": patch
3+
---
4+
5+
Display the public visibility field report to public users in [#1743](https://github.com/IFRCGo/go-web-app/issues/1343)

app/src/App/routes/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,7 @@ const allFieldReports = customWrapRoute({
808808
wrapperComponent: Auth,
809809
context: {
810810
title: 'All Field Reports',
811-
visibility: 'is-authenticated',
812-
permissions: ({ isGuestUser }) => !isGuestUser,
811+
visibility: 'anything',
813812
},
814813
});
815814

@@ -1032,8 +1031,7 @@ const fieldReportDetails = customWrapRoute({
10321031
wrapperComponent: Auth,
10331032
context: {
10341033
title: 'Field Report Details',
1035-
visibility: 'is-authenticated',
1036-
permissions: ({ isGuestUser }) => !isGuestUser,
1034+
visibility: 'anything',
10371035
},
10381036
});
10391037

0 commit comments

Comments
 (0)