Browse Source

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

Aleksandr Kovalenko 10 năm trước cách đây
mục cha
commit
836541a2f5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);