Repository: ambari
Updated Branches:
  refs/heads/trunk 11543ed4f -> d6ae8e3d4


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/d6ae8e3d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d6ae8e3d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d6ae8e3d

Branch: refs/heads/trunk
Commit: d6ae8e3d4c04f3bd6a432965098105683fe50684
Parents: d5afa1b
Author: Alex Antonenko <[email protected]>
Authored: Mon Jun 6 16:35:19 2016 +0300
Committer: Alex Antonenko <[email protected]>
Committed: Mon Jun 6 21:26:29 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/d6ae8e3d/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