Repository: ambari
Updated Branches:
  refs/heads/trunk 0df3f2857 -> 9c29d8495


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/9c29d849
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9c29d849
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9c29d849

Branch: refs/heads/trunk
Commit: 9c29d8495fb92806e85d95bc6d2a7e21f86e1b1c
Parents: 0df3f28
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:37:25 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/9c29d849/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"}} &nbsp;
       {{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/9c29d849/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> &nbsp; {{t dashboard.widgets.create}}
           </button>
         </div>
+      {{/isAuthorized}}
 
       <!--Filters bar: service name filter, status filter here-->
       <ul id="services-filter-bar" class="nav nav-tabs">

Reply via email to