Check TeamMember.isOrganizationOwner flag for owner detection in my-networks endpoint

FixSecurityService
Shipped
April 17, 2026 at 3:15 AM UTC
Author
Kamo
Commit
bb8028e

The previous check only looked at org.getOwner() (user_id_owner column) which can be null for existing orgs. The authoritative owner flag lives on the TeamMember record itself.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing