Repository: ambari Updated Branches: refs/heads/trunk 6e5c6d408 -> 69a25e324
AMBARI-15421. User may change host's config group while second user is running some wizard (onechiporenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/69a25e32 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/69a25e32 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/69a25e32 Branch: refs/heads/trunk Commit: 69a25e324cb7b10cd55b529075a63ed3ff05a5cf Parents: 6e5c6d4 Author: Oleg Nechiporenko <onechipore...@apache.org> Authored: Tue Mar 15 10:22:37 2016 +0200 Committer: Oleg Nechiporenko <onechipore...@apache.org> Committed: Tue Mar 15 12:19:03 2016 +0200 ---------------------------------------------------------------------- ambari-web/app/templates/common/configs/service_config.hbs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/69a25e32/ambari-web/app/templates/common/configs/service_config.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/common/configs/service_config.hbs b/ambari-web/app/templates/common/configs/service_config.hbs index ea788b5..0b383d1 100644 --- a/ambari-web/app/templates/common/configs/service_config.hbs +++ b/ambari-web/app/templates/common/configs/service_config.hbs @@ -71,7 +71,9 @@ {{/if}} </span> {{#if controller.isHostsConfigsPage}} - <a href="#" {{action "switchHostGroup" target="controller"}}>{{t common.change}}</a> + {{#isAuthorized "SERVICE.MANAGE_CONFIG_GROUPS"}} + <a href="#" {{action "switchHostGroup" target="controller"}}>{{t common.change}}</a> + {{/isAuthorized}} {{else}} {{#isAuthorized "SERVICE.MANAGE_CONFIG_GROUPS"}} <a href="#" class="link-left-pad" {{action "manageConfigurationGroup" target="controller"}}>{{t services.service.actions.manage_configuration_groups.short}}</a>