ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject [1/2] ambari git commit: AMBARI-17058. RBAC: missing Delete Service support (alexantonenko)
Date Mon, 06 Jun 2016 18:33:34 GMT
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 <hiveww@gmail.com>
Authored: Mon Jun 6 16:35:19 2016 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
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) {


Mime
View raw message