nav items declare their permission

This commit is contained in:
2026-08-27 14:51:04 -04:00
parent 0c1fbfcc1e
commit e8f1de811f
12 changed files with 45 additions and 16 deletions

View File

@@ -57,6 +57,7 @@ class WarrantyPlugin(BasePlugin):
'name': 'Warranties',
'icon': 'shield',
'route': '/warranties',
'permission': 'warranty.view',
'position': 9,
},
]
@@ -69,6 +70,7 @@ class WarrantyPlugin(BasePlugin):
'description': 'Assets bucketed by coverage: expired, expiring soon, active',
'category': 'warranty',
'route': '/reports/warranty',
'permission': 'warranty.view',
},
]