getQueuePolicyTemplates() — supabase Function Reference
Architecture documentation for the getQueuePolicyTemplates() function in PolicyEditorModal.constants.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 68f8a828_38a7_c5df_4394_d85ba96493dc["getQueuePolicyTemplates()"] 5cae6a1d_d69a_57ce_077f_d3f1a4cc0bff["PolicyTemplates()"] 5cae6a1d_d69a_57ce_077f_d3f1a4cc0bff -->|calls| 68f8a828_38a7_c5df_4394_d85ba96493dc style 68f8a828_38a7_c5df_4394_d85ba96493dc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModal.constants.ts lines 310–326
export const getQueuePolicyTemplates = (): PolicyTemplate[] => {
return [
{
id: 'policy-queues-1',
preview: false,
templateName: 'Allow access to queue',
statement: ``.trim(),
name: 'Allow anon and authenticated to access messages from queue',
description:
'Base policy to ensure that anon and authenticated can only access appropriate rows. USING and CHECK statements will need to be adjusted accordingly',
definition: 'true',
check: 'true',
command: 'ALL',
roles: ['anon', 'authenticated'],
},
]
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getQueuePolicyTemplates() do?
getQueuePolicyTemplates() is a function in the supabase codebase.
What calls getQueuePolicyTemplates()?
getQueuePolicyTemplates() is called by 1 function(s): PolicyTemplates.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free