You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/12/10 19:46:05 UTC
ambari git commit: AMBARI-14323. Hide "Manage Ambari" button for
non-admin users
Repository: ambari
Updated Branches:
refs/heads/trunk 1c218dc74 -> 1813b0062
AMBARI-14323. Hide "Manage Ambari" button for non-admin users
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1813b006
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1813b006
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1813b006
Branch: refs/heads/trunk
Commit: 1813b0062bb8e52c4616261d9ad7c3517ee523d0
Parents: 1c218dc
Author: Alex Antonenko <hi...@gmail.com>
Authored: Thu Dec 10 20:36:17 2015 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Thu Dec 10 20:45:59 2015 +0200
----------------------------------------------------------------------
ambari-web/app/templates/application.hbs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/1813b006/ambari-web/app/templates/application.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/application.hbs b/ambari-web/app/templates/application.hbs
index fd6e7e1..e67e952 100644
--- a/ambari-web/app/templates/application.hbs
+++ b/ambari-web/app/templates/application.hbs
@@ -63,7 +63,7 @@
<li><a href="" id="about" {{action showAboutPopup target="controller"}}>{{t app.aboutAmbari}}</a></li>
{{#if App.router.clusterInstallCompleted}}
{{#if isClusterDataLoaded}}
- {{#isAuthorized "CLUSTER.UPGRADE_DOWNGRADE_STACK"}}
+ {{#isAuthorized "AMBARI.ADD_DELETE_CLUSTERS, AMBARI.ASSIGN_ROLES, AMBARI.EDIT_STACK_REPOS, AMBARI.MANAGE_GROUPS, AMBARI.MANAGE_STACK_VERSIONS, AMBARI.MANAGE_USERS, AMBARI.MANAGE_VIEWS, AMBARI.RENAME_CLUSTER, AMBARI.SET_SERVICE_USERS_GROUPS"}}
<li><a href=""
id="manage-ambari" {{action goToAdminView target="controller"}}>{{t app.manageAmbari}}</a>
</li>
@@ -71,7 +71,7 @@
{{/if}}
{{else}}
{{#if App.isPermissionDataLoaded}}
- {{#isAuthorized "CLUSTER.UPGRADE_DOWNGRADE_STACK"}}
+ {{#isAuthorized "AMBARI.ADD_DELETE_CLUSTERS, AMBARI.ASSIGN_ROLES, AMBARI.EDIT_STACK_REPOS, AMBARI.MANAGE_GROUPS, AMBARI.MANAGE_STACK_VERSIONS, AMBARI.MANAGE_USERS, AMBARI.MANAGE_VIEWS, AMBARI.RENAME_CLUSTER, AMBARI.SET_SERVICE_USERS_GROUPS"}}
<li><a href=""
id="manage-ambari" {{action goToAdminView target="controller"}}>{{t app.manageAmbari}}</a>
</li>