feat: add groups to app ctx
This commit is contained in:
@@ -72,6 +72,7 @@
|
||||
const pickVariableCallback: Writable<((path: string) => void) | undefined> = writable(undefined)
|
||||
let context = {
|
||||
email: $userStore?.email,
|
||||
groups: $userStore?.groups,
|
||||
username: $userStore?.username,
|
||||
query: Object.fromEntries($page.url.searchParams.entries()),
|
||||
hash: $page.url.hash,
|
||||
|
||||
@@ -168,7 +168,8 @@
|
||||
isEditor={false}
|
||||
context={{
|
||||
username: $userStore?.username ?? 'anonymous',
|
||||
email: $userStore?.email ?? 'anonymous'
|
||||
email: $userStore?.email ?? 'anonymous',
|
||||
groups: $userStore?.groups ?? []
|
||||
}}
|
||||
summary={appViewerApp?.app.summary ?? ''}
|
||||
noBackend
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
context={{
|
||||
email: $userStore?.email,
|
||||
username: $userStore?.username,
|
||||
groups: $userStore?.groups,
|
||||
query: Object.fromEntries($page.url.searchParams.entries()),
|
||||
hash: $page.url.hash
|
||||
}}
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
noBackend={false}
|
||||
context={{
|
||||
email: $userStore?.email,
|
||||
groups: $userStore?.groups,
|
||||
username: $userStore?.username,
|
||||
query: Object.fromEntries($page.url.searchParams.entries()),
|
||||
hash: $page.url.hash
|
||||
|
||||
Reference in New Issue
Block a user