Skip to content

Commit bbc2f7a

Browse files
committed
Sponsor access to volunteer
1 parent 8a96e98 commit bbc2f7a

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

apps/dashboard/layouts/themeless-layout.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ function ThemelessLayout({ children }: ThemelessLayoutProps) {
7979
url: '/participant-database',
8080
image: MdOutlinePeopleAlt,
8181
},
82+
{
83+
name: 'Event Check-in',
84+
url: '/identity-portal/event-checkin',
85+
image: MdOutlinePlaylistAddCheck,
86+
},
8287
];
8388
}, [user]);
8489

apps/dashboard/pages/identity-portal/attendee-event-scan/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ export function Index() {
212212
return <>Loading</>;
213213
}
214214
// Limit access to only volunteer role
215-
if (authUser?.role !== HibiscusRole.VOLUNTEER) {
215+
if (
216+
authUser?.role !== HibiscusRole.VOLUNTEER &&
217+
authUser?.role !== HibiscusRole.SPONSOR
218+
) {
216219
router.push('/');
217220
return <></>;
218221
}

apps/dashboard/pages/identity-portal/event-checkin/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export function Index() {
3030
return <>Loading</>;
3131
}
3232
// Limit access to only volunteer role
33-
if (authUser?.role !== HibiscusRole.VOLUNTEER) {
33+
if (
34+
authUser?.role !== HibiscusRole.VOLUNTEER &&
35+
authUser?.role !== HibiscusRole.SPONSOR
36+
) {
3437
router.push('/');
3538
return <></>;
3639
}

0 commit comments

Comments
 (0)