feat: enforce role section permissions and add a leads permission
Unticking a section hides it from the menu, closes its routes and blocks its writes on the server; existing roles keep their current access via migration.
This commit is contained in:
@@ -41,7 +41,7 @@ export const SYSTEM_ROLE_SEEDS: Array<{
|
||||
name: 'کارشناس فروش',
|
||||
description: 'امکان دسترسی به بخشهای فروش و مشتریان برای انجام فعالیتهای روزمره.',
|
||||
color: 'teal',
|
||||
permissions: [...ALL_ROLE_PERMISSIONS],
|
||||
permissions: ALL_ROLE_PERMISSIONS.filter((key) => key !== 'audit'),
|
||||
},
|
||||
{
|
||||
systemKey: 'support',
|
||||
|
||||
Reference in New Issue
Block a user