You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2015/06/02 14:05:53 UTC

ambari git commit: AMBARI-11610. action "Update Rack" should not be available for user with read-only access (onechiporenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk 46bf5cb13 -> f4a6b76b6


AMBARI-11610. action "Update Rack" should not be available for user with read-only access (onechiporenko)


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

Branch: refs/heads/trunk
Commit: f4a6b76b63f35a8e52dfea5c443c1edd27e165a8
Parents: 46bf5cb
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Tue Jun 2 15:02:56 2015 +0300
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Tue Jun 2 15:02:56 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/templates/main/host/summary.hbs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f4a6b76b/ambari-web/app/templates/main/host/summary.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/host/summary.hbs b/ambari-web/app/templates/main/host/summary.hbs
index 28f2989..517aef3 100644
--- a/ambari-web/app/templates/main/host/summary.hbs
+++ b/ambari-web/app/templates/main/host/summary.hbs
@@ -135,7 +135,11 @@
                           <dd class="summary-ipaddress-value">&nbsp;{{view.content.ip}}</dd>
 
                         <dt class="summary-rack-label">{{t common.rack}}:</dt>
-                        <dd class="summary-rack-value">&nbsp;{{view.content.rack}} <a class="set-rack-id" {{action setRackId view.content target="controller"}}><i class="icon-pencil"></i></a></dd>
+                        <dd class="summary-rack-value">&nbsp;{{view.content.rack}}
+                          {{#isAccessible MANAGER}}
+                            <a class="set-rack-id" {{action setRackId view.content target="controller"}}><i class="icon-pencil"></i></a>
+                          {{/isAccessible}}
+                        </dd>
 
                         <dt class="summary-os-label">{{t common.os}}:</dt>
                           <dd class="summary-os-value">&nbsp;{{view.content.osType}}&nbsp;({{view.content.osArch}})</dd>