From 73e4120d47f4e3555c069377e70291da0510bd0f Mon Sep 17 00:00:00 2001 From: Jake Fulmine Date: Thu, 10 Aug 2023 18:44:14 +0200 Subject: [PATCH] fix(dashboard): don't show private info in public section when logged in --- dashboard/src/routes/Dash/Profile.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/src/routes/Dash/Profile.svelte b/dashboard/src/routes/Dash/Profile.svelte index 4f950a31..c5e6f2bc 100644 --- a/dashboard/src/routes/Dash/Profile.svelte +++ b/dashboard/src/routes/Dash/Profile.svelte @@ -47,7 +47,7 @@ async function getSystem() { try { - let res: System = await api().systems(systemId).get(); + let res: System = await api().systems(systemId).get({ auth: false }); user = res; title = user.name ? user.name : "system"; } catch (error) { @@ -73,7 +73,7 @@ loading.groups = true; try { - const res = await api().systems(systemId).members.get(); + const res = await api().systems(systemId).members.get({ auth: false }); memberStore.set(res) loading.members = false; @@ -83,7 +83,7 @@ } try { - const res = await api().systems(systemId).groups.get(); + const res = await api().systems(systemId).groups.get({ auth: false }); groupStore.set(res) loading.groups = false;