feat(roles): let each section decide who may assign work to others
Section access now only creates a record for yourself. Assigning it to a colleague requires a separate permission on that section. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -41,7 +41,9 @@ export const SYSTEM_ROLE_SEEDS: Array<{
|
||||
name: 'کارشناس فروش',
|
||||
description: 'امکان دسترسی به بخشهای فروش و مشتریان برای انجام فعالیتهای روزمره.',
|
||||
color: 'teal',
|
||||
permissions: ALL_ROLE_PERMISSIONS.filter((key) => key !== 'audit'),
|
||||
permissions: ALL_ROLE_PERMISSIONS.filter(
|
||||
(key) => key !== 'audit' && !key.startsWith('assign_'),
|
||||
),
|
||||
},
|
||||
{
|
||||
systemKey: 'support',
|
||||
|
||||
Reference in New Issue
Block a user