agents->find_by_wp_user_id( $wp_user_id ); if ( null !== $agent && null !== $agent->id() ) { return AccessScope::for_agents( (int) $agent->id() ); } // Capability without a linked agent: empty agent scope (sees nothing). return AccessScope::for_agents(); } }