From e8a04b7ce1fdb31febca7894229247207369bc85 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 20 Feb 2023 17:00:44 +0100 Subject: [bugfix] Fix account roles (#1542) * Change account role from string to object * Update tests * small fixes + swagger docs --------- Co-authored-by: zowhoey <11893985+zowhoey@users.noreply.github.com> --- web/source/settings/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/source/settings/index.js') diff --git a/web/source/settings/index.js b/web/source/settings/index.js index 812fff6b4..1be4f4a31 100644 --- a/web/source/settings/index.js +++ b/web/source/settings/index.js @@ -55,7 +55,7 @@ const nav = { const { sidebar, panelRouter } = require("./lib/get-views")(nav); function App({ account }) { - const isAdmin = account.role == "admin"; + const isAdmin = account.role.name == "admin"; const [logoutQuery] = query.useLogoutMutation(); return ( -- cgit v1.2.3