nav items declare their permission
This commit is contained in:
@@ -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',
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user