Home / Function/ getDefaultTableCheckedStates() — supabase Function Reference

getDefaultTableCheckedStates() — supabase Function Reference

Architecture documentation for the getDefaultTableCheckedStates() function in Privileges.utils.ts from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/Database/Privileges/Privileges.utils.ts lines 35–42

export function getDefaultTableCheckedStates(tablePrivilege: PgTablePrivileges) {
  return Object.fromEntries(
    ALL_PRIVILEGE_TYPES.map((privilege) => [
      privilege,
      tablePrivilege.privileges.find((p) => p.privilege_type === privilege) !== undefined,
    ])
  )
}

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free