isAdminFieldLevel() — supabase Function Reference
Architecture documentation for the isAdminFieldLevel() function in isAdmin.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/cms/src/access/isAdmin.ts lines 12–15
export const isAdminFieldLevel: FieldAccess<{ id: string }, User> = ({ req: { user } }) => {
// Return true or false based on if the user has an admin role
return Boolean(user?.roles?.includes('admin'))
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free