@@ -55,10 +55,12 @@ export class SecondaryMenuHelper {
5555 static getMobileMenu = ( path : string ) => {
5656 const menuItems : MenuItem [ ] = [ ] ;
5757 let label : string = Locale . label ( "common.mobile" ) ;
58- menuItems . push ( { url : "/mobile/navigation" , label : Locale . label ( "common.navigation" ) , icon : "menu" } ) ;
59- menuItems . push ( { url : "/mobile/theme" , label : Locale . label ( "common.appTheme" ) , icon : "palette" } ) ;
60- menuItems . push ( { url : "/mobile/b1-mobile" , label : Locale . label ( "common.b1Mobile" ) , icon : "phone_android" } ) ;
61- menuItems . push ( { url : "/mobile/checkin" , label : Locale . label ( "common.b1CheckIn" ) , icon : "qr_code" } ) ;
58+ if ( UserHelper . checkAccess ( Permissions . membershipApi . settings . edit ) ) {
59+ menuItems . push ( { url : "/mobile/navigation" , label : Locale . label ( "common.navigation" ) , icon : "menu" } ) ;
60+ menuItems . push ( { url : "/mobile/theme" , label : Locale . label ( "common.appTheme" ) , icon : "palette" } ) ;
61+ menuItems . push ( { url : "/mobile/b1-mobile" , label : Locale . label ( "common.b1Mobile" ) , icon : "phone_android" } ) ;
62+ menuItems . push ( { url : "/mobile/checkin" , label : Locale . label ( "common.b1CheckIn" ) , icon : "qr_code" } ) ;
63+ }
6264
6365 if ( path . startsWith ( "/mobile/theme" ) ) label = Locale . label ( "common.appTheme" ) ;
6466 else if ( path . startsWith ( "/mobile/b1-mobile" ) ) label = Locale . label ( "common.b1Mobile" ) ;
@@ -127,12 +129,14 @@ export class SecondaryMenuHelper {
127129 const menuItems : MenuItem [ ] = [ ] ;
128130 let label : string = "Website" ;
129131
130- menuItems . push ( { url : "/site/pages" , label : "Pages" , icon : "article" } ) ;
131- menuItems . push ( { url : "/site/blocks" , label : "Blocks" , icon : "widgets" } ) ;
132- menuItems . push ( { url : "/site/appearance" , label : "Appearance" , icon : "palette" } ) ;
133- menuItems . push ( { url : "/site/files" , label : "Files" , icon : "folder_open" } ) ;
134- menuItems . push ( { url : "/calendars" , label : "Calendars" , icon : "calendar_month" } ) ;
135- menuItems . push ( { url : "/registrations" , label : "Registrations" , icon : "how_to_reg" } ) ;
132+ if ( UserHelper . checkAccess ( Permissions . contentApi . content . edit ) ) {
133+ menuItems . push ( { url : "/site/pages" , label : "Pages" , icon : "article" } ) ;
134+ menuItems . push ( { url : "/site/blocks" , label : "Blocks" , icon : "widgets" } ) ;
135+ menuItems . push ( { url : "/site/appearance" , label : "Appearance" , icon : "palette" } ) ;
136+ menuItems . push ( { url : "/site/files" , label : "Files" , icon : "folder_open" } ) ;
137+ menuItems . push ( { url : "/calendars" , label : "Calendars" , icon : "calendar_month" } ) ;
138+ menuItems . push ( { url : "/registrations" , label : "Registrations" , icon : "how_to_reg" } ) ;
139+ }
136140
137141 if ( path . startsWith ( "/registrations" ) ) label = "Registrations" ;
138142 else if ( path . startsWith ( "/site/pages" ) ) label = "Pages" ;
@@ -148,10 +152,12 @@ export class SecondaryMenuHelper {
148152 static getSermonsMenu = ( path : string ) => {
149153 const menuItems : MenuItem [ ] = [ ] ;
150154 let label : string = "" ;
151- menuItems . push ( { url : "/sermons" , label : "Sermons" , icon : "live_tv" } ) ;
152- menuItems . push ( { url : "/sermons/playlists" , label : "Playlists" , icon : "video_library" } ) ;
153- menuItems . push ( { url : "/sermons/times" , label : "Live Stream Times" , icon : "schedule" } ) ;
154- menuItems . push ( { url : "/sermons/bulk" , label : "Bulk Import" , icon : "cloud_upload" } ) ;
155+ if ( UserHelper . checkAccess ( Permissions . contentApi . streamingServices . edit ) ) {
156+ menuItems . push ( { url : "/sermons" , label : "Sermons" , icon : "live_tv" } ) ;
157+ menuItems . push ( { url : "/sermons/playlists" , label : "Playlists" , icon : "video_library" } ) ;
158+ menuItems . push ( { url : "/sermons/times" , label : "Live Stream Times" , icon : "schedule" } ) ;
159+ menuItems . push ( { url : "/sermons/bulk" , label : "Bulk Import" , icon : "cloud_upload" } ) ;
160+ }
155161
156162 if ( path . startsWith ( "/sermons/bulk" ) ) label = "Bulk Import" ;
157163 else if ( path . startsWith ( "/sermons/times" ) ) label = "Live Stream Times" ;
0 commit comments