Просмотр исходного кода

AMBARI-15370. Login as regular user (no cluster access at all) but background ops are running about cluster (alexantonenko)

Alex Antonenko 9 лет назад
Родитель
Сommit
68034ae843
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      ambari-web/app/controllers/global/update_controller.js

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

@@ -191,7 +191,7 @@ App.UpdateController = Em.Controller.extend({
    * Start polling, when <code>isWorking</code> become true
    */
   updateAll: function () {
-    if (this.get('isWorking')) {
+    if (this.get('isWorking') && !App.get('isOnlyViewUser')) {
       App.updater.run(this, 'updateServices', 'isWorking');
       App.updater.run(this, 'updateHost', 'isWorking');
       App.updater.run(this, 'updateServiceMetric', 'isWorking', App.componentsUpdateInterval, '\/main\/(dashboard|services).*');