Skip to content

Commit

Permalink
ui: Fix non admin logouts (apache#8065)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
harikrishna-patnala authored and rp- committed Oct 13, 2023
1 parent d2ad936 commit fb2a5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/views/dashboard/UsageDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,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()
}
}
Expand Down

0 comments on commit fb2a5b8

Please sign in to comment.