From 47e2ba724b6cfd3d112bbb253df67bf7e12e60c0 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 7 May 2023 16:11:20 -0700 Subject: [PATCH] fix instance-info if moderator but not admin --- packages/client/src/pages/instance-info.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/client/src/pages/instance-info.vue b/packages/client/src/pages/instance-info.vue index 15c853078..1ddf63142 100644 --- a/packages/client/src/pages/instance-info.vue +++ b/packages/client/src/pages/instance-info.vue @@ -81,7 +81,7 @@ }} - + (); let tabs = ["overview"]; -if (iAmModerator) tabs.push("chart", "users", "raw"); +if (iAmAdmin) tabs.push("chart", "users", "raw"); let tab = $ref(tabs[0]); watch($$(tab), () => syncSlide(tabs.indexOf(tab))); @@ -387,7 +387,7 @@ let isSilenced = $ref(false); let faviconUrl = $ref(null); const usersPagination = { - endpoint: iAmModerator ? "admin/show-users" : ("users" as const), + endpoint: iAmAdmin ? "admin/show-users" : ("users" as const), limit: 10, params: { sort: "+updatedAt", @@ -478,7 +478,7 @@ let theTabs = [ }, ]; -if (iAmModerator) { +if (iAmAdmin) { theTabs.push( { key: "chart",