roles update
This commit is contained in:
@@ -11,10 +11,13 @@ export const rolesData: RoleConfig[] = [
|
||||
name: 'مدیر (پلن پایه)',
|
||||
isSystem: false,
|
||||
permissionFilter: (name: Permission) =>
|
||||
name === Permission.MANAGE_FOODS || name === Permission.MANAGE_CATEGORIES ||
|
||||
name === Permission.MANAGE_FOODS ||
|
||||
name === Permission.MANAGE_CATEGORIES ||
|
||||
name === Permission.MANAGE_SCHEDULES ||
|
||||
name === Permission.MANAGE_PAGER ||
|
||||
name === Permission.MANAGE_CONTACTS,
|
||||
name === Permission.MANAGE_CONTACTS ||
|
||||
name === Permission.MANAGE_ROLES ||
|
||||
name === Permission.MANAGE_SETTINGS
|
||||
},
|
||||
{
|
||||
name: 'مدیر ( پلن ویژه)',
|
||||
|
||||
@@ -13,7 +13,7 @@ export class RolesSeeder {
|
||||
if (!role) {
|
||||
role = em.create(Role, {
|
||||
name: roleConfig.name,
|
||||
isSystem: roleConfig.isSystem,
|
||||
isSystem: true,
|
||||
});
|
||||
|
||||
// Add permissions based on role configuration
|
||||
|
||||
Reference in New Issue
Block a user