新增职务权限管理与聊天室管理权限控制
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Database\Seeders;
|
||||
|
||||
use App\Models\Department;
|
||||
use App\Models\Position;
|
||||
use App\Support\PositionPermissionRegistry;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DepartmentPositionSeeder extends Seeder
|
||||
@@ -48,6 +49,7 @@ class DepartmentPositionSeeder extends Seeder
|
||||
'max_persons' => $row['max_persons'],
|
||||
'max_reward' => $row['max_reward'],
|
||||
'sort_order' => $row['sort_order'],
|
||||
'permissions' => PositionPermissionRegistry::defaultPermissionsForLevel((int) $row['level']),
|
||||
]
|
||||
);
|
||||
$positions["{$row['department']}::{$row['name']}"] = $position;
|
||||
|
||||
Reference in New Issue
Block a user