File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,11 @@ function ThemelessLayout({ children }: ThemelessLayoutProps) {
79
79
url : '/participant-database' ,
80
80
image : MdOutlinePeopleAlt ,
81
81
} ,
82
+ {
83
+ name : 'Event Check-in' ,
84
+ url : '/identity-portal/event-checkin' ,
85
+ image : MdOutlinePlaylistAddCheck ,
86
+ } ,
82
87
] ;
83
88
} , [ user ] ) ;
84
89
Original file line number Diff line number Diff line change @@ -212,7 +212,10 @@ export function Index() {
212
212
return < > Loading</ > ;
213
213
}
214
214
// 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
+ ) {
216
219
router . push ( '/' ) ;
217
220
return < > </ > ;
218
221
}
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ export function Index() {
30
30
return < > Loading</ > ;
31
31
}
32
32
// 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
+ ) {
34
37
router . push ( '/' ) ;
35
38
return < > </ > ;
36
39
}
You can’t perform that action at this time.
0 commit comments