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.

(cherry picked from commit 8b28128)
Signed-off-by: Rohit Yadav <[email protected]>
  • Loading branch information
harikrishna-patnala authored and rohityadavcloud committed Oct 18, 2023
1 parent 349f046 commit 4655b5d
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 @@ -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()
}
}
Expand Down

0 comments on commit 4655b5d

Please sign in to comment.