Browse Source

AMBARI-8182. Abort should not be available read-only users. (akovalenko)

Aleksandr Kovalenko 10 years ago
parent
commit
836541a2f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ambari-web/app/utils/host_progress_popup.js

+ 1 - 1
ambari-web/app/utils/host_progress_popup.js

@@ -357,7 +357,7 @@ App.HostPopup = Em.Object.create({
           updatedService = this.createService(service);
           servicesInfo.insertAt(index, updatedService);
         }
-        updatedService.set('isAbortable', this.isAbortableByStatus(service.status));
+        updatedService.set('isAbortable',  App.get('isManager') &&  this.isAbortableByStatus(service.status));
       }, this);
       this.removeOldServices(servicesInfo, currentServices);
       this.setBackgroundOperationHeader(isServiceListHidden);