Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 7869e4df8 -> c97bd75e4


AMBARI-17058. RBAC: missing Delete Service support (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c97bd75e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c97bd75e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c97bd75e

Branch: refs/heads/branch-2.4
Commit: c97bd75e4a414cc523d0b834917bdd5ca257df17
Parents: 2a82a81
Author: Alex Antonenko <[email protected]>
Authored: Mon Jun 6 16:35:19 2016 +0300
Committer: Alex Antonenko <[email protected]>
Committed: Mon Jun 6 21:33:21 2016 +0300

----------------------------------------------------------------------
 ambari-web/app/views/main/service/item.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c97bd75e/ambari-web/app/views/main/service/item.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/item.js 
b/ambari-web/app/views/main/service/item.js
index 36b3413..02ac426 100644
--- a/ambari-web/app/views/main/service/item.js
+++ b/ambari-web/app/views/main/service/item.js
@@ -291,7 +291,9 @@ App.MainServiceItemView = Em.View.extend({
       options.push(actionMap.DOWNLOAD_CLIENT_CONFIGS);
     }
 
-    options.push(actionMap.DELETE_SERVICE);
+    if (App.isAuthorized("SERVICE.ADD_DELETE_SERVICES")) {
+      options.push(actionMap.DELETE_SERVICE);
+    }
 
     if (this.get('maintenance.length')) {
       this.get('maintenance').forEach(function(option, index) {

Reply via email to