feat(roles): add module permissions for dashboards/onboarding/external roles
This commit is contained in:
parent
93e38018dc
commit
d7bf5a6d56
1 changed files with 5 additions and 0 deletions
|
|
@ -20,10 +20,15 @@ type DepartmentOption = { id: string; name: string };
|
||||||
|
|
||||||
// Permission matrix: each module maps to CRUD permission keys
|
// Permission matrix: each module maps to CRUD permission keys
|
||||||
const MODULE_PERMISSIONS = [
|
const MODULE_PERMISSIONS = [
|
||||||
|
{ module: 'Dashboard', prefix: 'ADMIN_DASHBOARD' },
|
||||||
{ module: 'Employee Management', prefix: 'EMPLOYEES' },
|
{ module: 'Employee Management', prefix: 'EMPLOYEES' },
|
||||||
{ module: 'Department Management', prefix: 'DEPARTMENTS' },
|
{ module: 'Department Management', prefix: 'DEPARTMENTS' },
|
||||||
{ module: 'Designation Management', prefix: 'DESIGNATIONS' },
|
{ module: 'Designation Management', prefix: 'DESIGNATIONS' },
|
||||||
{ module: 'Role Management', prefix: 'ROLES' },
|
{ module: 'Role Management', prefix: 'ROLES' },
|
||||||
|
{ module: 'External Role Management', prefix: 'EXTERNAL_ROLES' },
|
||||||
|
{ module: 'External Onboarding Management', prefix: 'ONBOARDING' },
|
||||||
|
{ module: 'Internal Dashboard Management', prefix: 'INTERNAL_DASHBOARDS' },
|
||||||
|
{ module: 'External Dashboard Management', prefix: 'EXTERNAL_DASHBOARDS' },
|
||||||
{ module: 'Verification Management', prefix: 'VERIFICATIONS' },
|
{ module: 'Verification Management', prefix: 'VERIFICATIONS' },
|
||||||
{ module: 'Approval Management', prefix: 'APPROVALS' },
|
{ module: 'Approval Management', prefix: 'APPROVALS' },
|
||||||
{ module: 'Users Management', prefix: 'USERS' },
|
{ module: 'Users Management', prefix: 'USERS' },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue