Repository: ambari Updated Branches: refs/heads/branch-2.4 118492a83 -> b261dbd5d
AMBARI-17598 Permission mismatch b/w 'Cluster user' and 'read only user' from older ambari (zhewang) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b261dbd5 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b261dbd5 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b261dbd5 Branch: refs/heads/branch-2.4 Commit: b261dbd5db588c65e99846c6241e0e19f3f5e17b Parents: 118492a Author: Zhe (Joe) Wang <[email protected]> Authored: Wed Jul 6 17:36:36 2016 -0700 Committer: Zhe (Joe) Wang <[email protected]> Committed: Wed Jul 6 17:38:05 2016 -0700 ---------------------------------------------------------------------- .../app/templates/common/modal_popups/widget_browser_footer.hbs | 2 ++ .../app/templates/common/modal_popups/widget_browser_popup.hbs | 2 ++ 2 files changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/b261dbd5/ambari-web/app/templates/common/modal_popups/widget_browser_footer.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/common/modal_popups/widget_browser_footer.hbs b/ambari-web/app/templates/common/modal_popups/widget_browser_footer.hbs index 3d58948..7e4abb4 100644 --- a/ambari-web/app/templates/common/modal_popups/widget_browser_footer.hbs +++ b/ambari-web/app/templates/common/modal_popups/widget_browser_footer.hbs @@ -17,9 +17,11 @@ }} <div class="modal-footer"> + {{#isAuthorized "SERVICE.MODIFY_CONFIGS"}} <label id="footer-checkbox"> {{view Ember.Checkbox classNames="checkbox" checkedBinding="view.parentView.isShowMineOnly"}} {{t dashboard.widgets.browser.footer.checkbox}} </label> + {{/isAuthorized}} <button class="btn btn-success" {{action onPrimary target="view"}}>{{t common.close}}</button> </div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/b261dbd5/ambari-web/app/templates/common/modal_popups/widget_browser_popup.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/common/modal_popups/widget_browser_popup.hbs b/ambari-web/app/templates/common/modal_popups/widget_browser_popup.hbs index 2b94e9d..6b452a2 100644 --- a/ambari-web/app/templates/common/modal_popups/widget_browser_popup.hbs +++ b/ambari-web/app/templates/common/modal_popups/widget_browser_popup.hbs @@ -19,12 +19,14 @@ <div id="widget-browser-popup"> {{#if view.isLoaded}} <div class="widget-browser-content"> + {{#isAuthorized "SERVICE.MODIFY_CONFIGS"}} <!--Create new widget button--> <div class="btn-group pull-right" id="create-widget-button"> <button type="button" class="btn btn-primary" {{action "createWidget" target="view"}} > <i class="icon-plus"></i> {{t dashboard.widgets.create}} </button> </div> + {{/isAuthorized}} <!--Filters bar: service name filter, status filter here--> <ul id="services-filter-bar" class="nav nav-tabs">
