Correct field name mapping between backend and frontend for access level API

Fixkamo-internal
Shipped
April 11, 2026 at 11:40 PM UTC
Author
kamo
Commit
be07266

Map backend securityLevelId→accessLevel, isOrganizationOwner→isOwner, memberType→isTeamMember in API route. Fix right check to use EDIT_MEMBER_ACCESS_LEVEL instead of MANAGE_MEMBER_SECURITY. Fix owner toggle to check signed-in user's owner status via separate API call. Fix getSecurityLevel() runtime type (returns number, not ImageAccessLevelType object).

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