This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.18 by this push:
     new 8b281284a26 ui: Fix non admin logouts (#8065)
8b281284a26 is described below

commit 8b281284a26d4d21cae031e7f8dcb789383785f3
Author: Harikrishna <harikrishna.patn...@gmail.com>
AuthorDate: Wed Oct 11 16:58:29 2023 +0530

    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()
         }
       }

Reply via email to