Skip to content

Commit c634864

Browse files
committed
fix: update access permissions for AccommodationPage to include outreach and finance roles
1 parent f1225f6 commit c634864

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/pages/AccommodationPage.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,20 @@ const AccommodationPage: React.FC = () => {
283283
}
284284

285285
// Check permissions
286-
if (!currentUser || !hasRole(currentUser, "admin")) {
286+
if (!currentUser || !(
287+
hasRole(currentUser, "admin") ||
288+
hasRole(currentUser, "outreach-admin") ||
289+
hasRole(currentUser, "outreach-member") ||
290+
hasRole(currentUser, "finance")
291+
)) {
287292
return (
288293
<Container className="py-4">
289294
<Alert variant="danger">
290295
<h4>Access Denied</h4>
291296
<p>You don't have permission to access the Accommodation Management page.</p>
292-
<p className="small text-muted">Only admin role can access this page.</p>
297+
<p className="small text-muted">
298+
Only users with admin, outreach-admin, outreach-member, or finance roles can access this page.
299+
</p>
293300
</Alert>
294301
</Container>
295302
);

0 commit comments

Comments
 (0)