Circle V2 API Docs
    Preparing search index...

    Type Alias FormEditabilityParams

    type FormEditabilityParams = {
        isSuperadmin: boolean;
        userId: UserId;
    }
    Index

    Properties

    Properties

    isSuperadmin: boolean

    From profiles.is_superadmin: RLS's is_superadmin() reads auth.uid(), absent on the admin client, so the caller resolves the flag.

    userId: UserId

    The requesting user — matches forms.created_by for the creator branch.