Explorar o código

AMBARI-14340. Logging into Ambari UI when user only has access to views causes browser to cycle between login page and loading screen (rzang)

Richard Zang %!s(int64=9) %!d(string=hai) anos
pai
achega
a1baa5c092
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ambari-web/app/controllers/global/cluster_controller.js

+ 1 - 1
ambari-web/app/controllers/global/cluster_controller.js

@@ -362,7 +362,7 @@ App.ClusterController = Em.Controller.extend(App.ReloadPopupMixin, {
 
 
   loadAuthorizationsSuccessCallback: function(response) {
   loadAuthorizationsSuccessCallback: function(response) {
     if (response && response.items) {
     if (response && response.items) {
-      App.set('auth', response.items.mapProperty('AuthorizationInfo.authorization_id'));
+      App.set('auth', response.items.mapProperty('AuthorizationInfo.authorization_id').uniq());
       App.db.setAuth(App.get('auth'));
       App.db.setAuth(App.get('auth'));
     }
     }
   },
   },