Browse Source

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 9 years ago
parent
commit
a1baa5c092
1 changed files with 1 additions and 1 deletions
  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) {
     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'));
     }
   },