Add role base access control for events module
This commit is contained in:
@@ -39,5 +39,10 @@ export const load: LayoutLoad = async ({ data, depends, fetch }) => {
|
||||
data: { user },
|
||||
} = await supabase.auth.getUser()
|
||||
|
||||
return { session, supabase, user }
|
||||
return {
|
||||
session,
|
||||
supabase,
|
||||
user,
|
||||
profile: data.profile
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user