You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2013/10/02 22:13:38 UTC

git commit: AMBARI-3432: New non-admin user can't log in.(jaimin)

Updated Branches:
  refs/heads/branch-1.4.1 455fd84f9 -> 6b1303d71


AMBARI-3432: New non-admin user can't log in.(jaimin)


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

Branch: refs/heads/branch-1.4.1
Commit: 6b1303d7188b03036eafd2e755c49f7d071ca566
Parents: 455fd84
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Wed Oct 2 13:13:06 2013 -0700
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Wed Oct 2 13:13:06 2013 -0700

----------------------------------------------------------------------
 ambari-web/app/views/main/dashboard.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/6b1303d7/ambari-web/app/views/main/dashboard.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/dashboard.js b/ambari-web/app/views/main/dashboard.js
index 9cd3ca2..9cc35f3 100644
--- a/ambari-web/app/views/main/dashboard.js
+++ b/ambari-web/app/views/main/dashboard.js
@@ -124,7 +124,7 @@ App.MainDashboardView = Em.View.extend({
     obj.set('visible', visibleFull);
     obj.set('hidden', hiddenFull);
   },
-  
+
   hdfs_model: null,
   mapreduce_model: null,
   mapreduce2_model: null,
@@ -238,7 +238,9 @@ App.MainDashboardView = Em.View.extend({
         this.translateToReal(this.get('currentPrefObject'));
       } else {
         // post persist then translate init object
-        this.postUserPref(this.get('persistKey'), this.get('initPrefObject'));
+        if(App.get('isAdmin')) {
+          this.postUserPref(this.get('persistKey'), this.get('initPrefObject'));
+        }
         this.translateToReal(this.get('initPrefObject'));
       }
     }