File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -335,23 +335,23 @@ def _build_nav_hierarchy(engine):
335335 nav .append (audit_section )
336336
337337 # Reporting section - standalone section
338- # Show for authenticated users (Phase 8 feature)
339- # Will show for any authenticated user with appropriate permissions
340- reporting_section = {
341- "title" : "Reports" ,
342- "icon" : "bar-chart" ,
343- "url" : "" ,
344- "app" : "reporting" ,
345- "children" : [
346- {
347- "title" : "Reports" ,
348- "icon" : "bar-chart" ,
349- "url" : "Reporting:list" ,
350- "app" : "reporting" ,
351- "children" : [],
352- },
353- ],
354- }
355- nav .append (reporting_section )
338+ # Only show for users with reporting permissions (Phase 8 feature)
339+ if _has_module_access ( engine , "reporting" ):
340+ reporting_section = {
341+ "title" : "Reports" ,
342+ "icon" : "bar-chart" ,
343+ "url" : "" ,
344+ "app" : "reporting" ,
345+ "children" : [
346+ {
347+ "title" : "Reports" ,
348+ "icon" : "bar-chart" ,
349+ "url" : "Reporting:list" ,
350+ "app" : "reporting" ,
351+ "children" : [],
352+ },
353+ ],
354+ }
355+ nav .append (reporting_section )
356356
357357 return nav
You can’t perform that action at this time.
0 commit comments