ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject git commit: AMBARI-6224. Newly Created Admin User in Ambari loses Admin rights on Refreshs (alexantonenko)
Date Fri, 20 Jun 2014 17:41:59 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk fc1634029 -> 6ec6c9970


AMBARI-6224. Newly Created Admin User in Ambari loses Admin rights on Refreshs (alexantonenko)


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

Branch: refs/heads/trunk
Commit: 6ec6c99700d67898974a9ce00b029a042c211ff4
Parents: fc16340
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Fri Jun 20 20:38:02 2014 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Fri Jun 20 20:38:02 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/router.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6ec6c997/ambari-web/app/router.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/router.js b/ambari-web/app/router.js
index 2e63d69..9fd4db8 100644
--- a/ambari-web/app/router.js
+++ b/ambari-web/app/router.js
@@ -193,7 +193,7 @@ App.Router = Em.Router.extend({
       this.setAuthenticated(true);
       this.setLoginName(params.loginName);
       App.usersMapper.map({"items": [data]});
-      this.setUser(App.User.find(params.loginName));
+      this.setUser(App.User.find().findProperty('id', params.loginName));
       this.transitionTo(this.getSection());
       controller.postLogin(true,true);
     }
@@ -229,7 +229,7 @@ App.Router = Em.Router.extend({
       this.setAuthenticated(true);
       this.setLoginName(params.loginName);
       App.usersMapper.map({"items": [params.loginData]});
-      this.setUser(App.User.find(params.loginName));
+      this.setUser(App.User.find().findProperty('id', params.loginName));
       this.transitionTo(this.getSection());
       controller.postLogin(true,true);
     }


Mime
View raw message