nav items declare their permission
This commit is contained in:
@@ -1652,6 +1652,7 @@ class ComputersPlugin(BasePlugin):
|
||||
'name': 'PCs',
|
||||
'icon': 'desktop',
|
||||
'route': '/pcs',
|
||||
'permission': 'computers.view',
|
||||
'position': 15,
|
||||
'section': 'assets',
|
||||
},
|
||||
|
||||
@@ -68,6 +68,7 @@ class KnowledgeBasePlugin(BasePlugin):
|
||||
'name': 'Knowledge Base',
|
||||
'icon': 'book-open',
|
||||
'route': '/knowledgebase',
|
||||
'permission': 'kb.view',
|
||||
'position': 35,
|
||||
'section': 'information',
|
||||
},
|
||||
|
||||
@@ -231,6 +231,7 @@ class MachinesPlugin(BasePlugin):
|
||||
'name': 'Machines',
|
||||
'icon': 'cog',
|
||||
'route': '/machines',
|
||||
'permission': 'machines.view',
|
||||
'position': 10,
|
||||
'section': 'assets',
|
||||
},
|
||||
|
||||
@@ -73,6 +73,7 @@ class MeasuringToolsPlugin(BasePlugin):
|
||||
'name': 'Measuring Tools',
|
||||
'icon': 'ruler',
|
||||
'route': '/measuringtools',
|
||||
'permission': 'measuringtools.view',
|
||||
'position': 22,
|
||||
'section': 'assets',
|
||||
},
|
||||
@@ -86,6 +87,7 @@ class MeasuringToolsPlugin(BasePlugin):
|
||||
'description': 'Measuring tools bucketed by calibration status',
|
||||
'category': 'compliance',
|
||||
'route': '/reports/calibration',
|
||||
'permission': 'measuringtools.view',
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -207,6 +207,7 @@ class NetworkPlugin(BasePlugin):
|
||||
'name': 'Network',
|
||||
'icon': 'network-wired',
|
||||
'route': '/network',
|
||||
'permission': 'network.view',
|
||||
'position': 18,
|
||||
'section': 'assets',
|
||||
},
|
||||
|
||||
@@ -232,12 +232,14 @@ class NotificationsPlugin(BasePlugin):
|
||||
'name': 'Notifications',
|
||||
'icon': 'bell',
|
||||
'route': '/notifications',
|
||||
'permission': 'notifications.view',
|
||||
'position': 5,
|
||||
},
|
||||
{
|
||||
'name': 'Calendar',
|
||||
'icon': 'calendar',
|
||||
'route': '/calendar',
|
||||
'permission': 'notifications.view',
|
||||
'position': 6,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -385,6 +385,7 @@ class PrintersPlugin(BasePlugin):
|
||||
'name': 'Printers',
|
||||
'icon': 'printer',
|
||||
'route': '/printers',
|
||||
'permission': 'printers.view',
|
||||
'position': 20,
|
||||
'section': 'assets',
|
||||
},
|
||||
|
||||
@@ -185,6 +185,7 @@ class USBPlugin(BasePlugin):
|
||||
'name': 'USB Devices',
|
||||
'icon': 'usb',
|
||||
'route': '/usb',
|
||||
'permission': 'usb.view',
|
||||
'position': 25,
|
||||
'section': 'assets',
|
||||
},
|
||||
|
||||
@@ -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