Update documentation rules for various contexts and functionalities (#235)
Update cusor rules for various contexts and functionalities
This commit is contained in:
committed by
GitHub
parent
53b09fcb8e
commit
1030c84eee
@@ -3,6 +3,7 @@ description: Super Admin functionalities
|
||||
globs: apps/*/app/admin/**,packages/features/admin/**
|
||||
alwaysApply: false
|
||||
---
|
||||
## Super Admin
|
||||
|
||||
1. Page Authentication:
|
||||
- All pages in the admin section must be wrapped with the `AdminGuard` HOC
|
||||
@@ -90,6 +91,7 @@ The Super Admin section requires strict access control as it provides elevated p
|
||||
|
||||
export const loadYourAdminData = cache(async () => {
|
||||
const client = getSupabaseServerClient();
|
||||
|
||||
const { data, error } = await client.from('your_table').select('*');
|
||||
|
||||
if (error) throw error;
|
||||
|
||||
Reference in New Issue
Block a user