feat: 글로벌 메뉴 템플릿 복제 시스템 구현
- GlobalMenuTemplateSeeder 추가: 60개 메뉴 템플릿 생성 (tenant_id=NULL) - MenuBootstrapService.cloneGlobalMenusForTenant() 추가 - parent_id 매핑으로 계층 구조 유지 - DB 트랜잭션으로 원자성 보장 - RegisterService 업데이트: 신규 회원가입 시 메뉴 템플릿 복제 - 기존 225개 테넌트에 메뉴 일괄 복제 완료 - 테스트 완료: 회원가입 + 로그인 시 60개 메뉴 정상 반환
This commit is contained in:
@@ -51,8 +51,8 @@ public static function register(array $params): array
|
||||
],
|
||||
]);
|
||||
|
||||
// 3. Create default menus for tenant
|
||||
$menuIds = MenuBootstrapService::createDefaultMenus($tenant->id);
|
||||
// 3. Clone global menu template for tenant
|
||||
$menuIds = MenuBootstrapService::cloneGlobalMenusForTenant($tenant->id);
|
||||
|
||||
// 4. Create User with hashed password and options
|
||||
$user = User::create([
|
||||
|
||||
Reference in New Issue
Block a user