feat: 增强后台设置校验、代理权限控制与财务审计能力
This commit is contained in:
@@ -104,8 +104,8 @@ final class AdminAuthProfile
|
||||
'code' => (string) $node->code,
|
||||
'name' => (string) $node->name,
|
||||
'depth' => (int) $node->depth,
|
||||
'can_create_child_agent' => $profile === null || $profile->can_create_child_agent,
|
||||
'can_create_player' => $profile === null || $profile->can_create_player,
|
||||
'can_create_child_agent' => (bool) ($profile?->can_create_child_agent ?? false),
|
||||
'can_create_player' => (bool) ($profile?->can_create_player ?? false),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user