feat: 增强后台设置校验、代理权限控制与财务审计能力
This commit is contained in:
@@ -274,14 +274,14 @@ final class AgentProfileService
|
||||
{
|
||||
$profile = $this->profileForNode($agentNodeId);
|
||||
|
||||
return $profile === null || $profile->can_create_child_agent;
|
||||
return (bool) ($profile?->can_create_child_agent ?? false);
|
||||
}
|
||||
|
||||
public function nodeMayCreatePlayer(int $agentNodeId): bool
|
||||
{
|
||||
$profile = $this->profileForNode($agentNodeId);
|
||||
|
||||
return $profile === null || $profile->can_create_player;
|
||||
return (bool) ($profile?->can_create_player ?? false);
|
||||
}
|
||||
|
||||
private function assertAgentProfileExists(AgentNode $agent): void
|
||||
|
||||
Reference in New Issue
Block a user