From 8b281284a26d4d21cae031e7f8dcb789383785f3 Mon Sep 17 00:00:00 2001 From: Harikrishna Date: Wed, 11 Oct 2023 16:58:29 +0530 Subject: [PATCH] ui: Fix non admin logouts (#8065) If a user (non-admin) logs out from a session, then login page is not loading completely. Few starter APIs like listIds are failing and showing unauthorised access notification in Login Page. Also if SAML is enabled, it is not getting enabled since the corresponding API are failed. User needs to refresh the browser to get it back. --- ui/src/views/dashboard/UsageDashboard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/views/dashboard/UsageDashboard.vue b/ui/src/views/dashboard/UsageDashboard.vue index 4264a90f925..a6983300cb9 100644 --- a/ui/src/views/dashboard/UsageDashboard.vue +++ b/ui/src/views/dashboard/UsageDashboard.vue @@ -142,7 +142,7 @@ export default { (newValue, oldValue) => { if (newValue && newValue.id && (!oldValue || newValue.id !== oldValue.id)) { this.fetchData() - } else if (store.getters.userInfo.roletype !== 'Admin') { + } else if (store.getters.userInfo.roletype !== 'Admin' && !store.getters.logoutFlag) { this.fetchData() } }