Home / Function/ getRevokePermissionStatements() — supabase Function Reference

getRevokePermissionStatements() — supabase Function Reference

Architecture documentation for the getRevokePermissionStatements() function in hooks.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  53875c04_b5ee_2f68_7ad7_2d91dfb75f9f["getRevokePermissionStatements()"]
  ed51c473_5272_57db_6316_2f767f81b646["CreateHookSheet()"]
  ed51c473_5272_57db_6316_2f767f81b646 -->|calls| 53875c04_b5ee_2f68_7ad7_2d91dfb75f9f
  dd52c5dc_b7d0_44e1_518c_ed23612e4645["HooksListing()"]
  dd52c5dc_b7d0_44e1_518c_ed23612e4645 -->|calls| 53875c04_b5ee_2f68_7ad7_2d91dfb75f9f
  style 53875c04_b5ee_2f68_7ad7_2d91dfb75f9f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Auth/Hooks/hooks.utils.ts lines 37–43

export const getRevokePermissionStatements = (schema: string, functionName: string): string[] => {
  return [
    `-- Revoke access to function from supabase_auth_admin\nrevoke execute on function ${schema}.${functionName} from supabase_auth_admin;`,
    `-- Revoke access to schema from supabase_auth_admin\nrevoke usage on schema ${schema} from supabase_auth_admin;`,
    `-- Restore function permissions to authenticated, anon and public\ngrant execute on function ${schema}.${functionName} to authenticated, anon, public;`,
  ]
}

Subdomains

Frequently Asked Questions

What does getRevokePermissionStatements() do?
getRevokePermissionStatements() is a function in the supabase codebase.
What calls getRevokePermissionStatements()?
getRevokePermissionStatements() is called by 2 function(s): CreateHookSheet, HooksListing.

Analyze Your Own Codebase

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

Try Supermodel Free