Explorar o código

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

Aleksandr Kovalenko %!s(int64=10) %!d(string=hai) anos
pai
achega
836541a2f5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
           updatedService = this.createService(service);
           servicesInfo.insertAt(index, updatedService);
           servicesInfo.insertAt(index, updatedService);
         }
         }
-        updatedService.set('isAbortable', this.isAbortableByStatus(service.status));
+        updatedService.set('isAbortable',  App.get('isManager') &&  this.isAbortableByStatus(service.status));
       }, this);
       }, this);
       this.removeOldServices(servicesInfo, currentServices);
       this.removeOldServices(servicesInfo, currentServices);
       this.setBackgroundOperationHeader(isServiceListHidden);
       this.setBackgroundOperationHeader(isServiceListHidden);