Repository: ambari Updated Branches: refs/heads/branch-2.5 b40b71e29 -> ff9eb72a9
AMBARI-19304. Host logs should not be visible for cluster user and service operator users (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ff9eb72a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ff9eb72a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ff9eb72a Branch: refs/heads/branch-2.5 Commit: ff9eb72a93e43d79036ef468e9c82dcb71d00a3b Parents: b40b71e Author: Alex Antonenko <[email protected]> Authored: Tue Dec 27 21:17:48 2016 +0200 Committer: Alex Antonenko <[email protected]> Committed: Tue Dec 27 23:42:50 2016 +0200 ---------------------------------------------------------------------- ambari-web/app/templates/common/host_progress_popup.hbs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/ff9eb72a/ambari-web/app/templates/common/host_progress_popup.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/common/host_progress_popup.hbs b/ambari-web/app/templates/common/host_progress_popup.hbs index 8658955..8fe2f50 100644 --- a/ambari-web/app/templates/common/host_progress_popup.hbs +++ b/ambari-web/app/templates/common/host_progress_popup.hbs @@ -203,9 +203,11 @@ class="icon-external-link"></i> {{t common.open}}</a> {{#if App.supports.logSearch}} {{#if view.isLogSearchInstalled}} - <a {{action navigateToHostLogs target="view"}} {{bindAttr class="view.isLogsLinkVisible::hidden"}} href="#"> - <i class="icon-file"></i> {{t common.host}} {{t common.logs}} - </a> + {{#isAuthorized "SERVICE.VIEW_OPERATIONAL_LOGS"}} + <a {{action navigateToHostLogs target="view"}} {{bindAttr class="view.isLogsLinkVisible::hidden"}} href="#"> + <i class="icon-file"></i> {{t common.host}} {{t common.logs}} + </a> + {{/isAuthorized}} {{/if}} {{/if}} </div>
