Skip to content

Commit 8b28128

Browse files
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.
1 parent 864a195 commit 8b28128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/dashboard/UsageDashboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export default {
142142
(newValue, oldValue) => {
143143
if (newValue && newValue.id && (!oldValue || newValue.id !== oldValue.id)) {
144144
this.fetchData()
145-
} else if (store.getters.userInfo.roletype !== 'Admin') {
145+
} else if (store.getters.userInfo.roletype !== 'Admin' && !store.getters.logoutFlag) {
146146
this.fetchData()
147147
}
148148
}

0 commit comments

Comments
 (0)