Repository: kylin
Updated Branches:
  refs/heads/2.0-rc 8ea8e471a -> 95970d5e1


minor, set user data in listener


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/95970d5e
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/95970d5e
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/95970d5e

Branch: refs/heads/2.0-rc
Commit: 95970d5e156e2d6ddf1fdf87731f89f3e6f99d9b
Parents: 8ea8e47
Author: janzhongi <jiazh...@ebay.com>
Authored: Wed Jan 27 20:23:30 2016 +0800
Committer: janzhongi <jiazh...@ebay.com>
Committed: Wed Jan 27 20:23:30 2016 +0800

----------------------------------------------------------------------
 webapp/app/js/listeners.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/95970d5e/webapp/app/js/listeners.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/listeners.js b/webapp/app/js/listeners.js
index 556acdf..68822b5 100644
--- a/webapp/app/js/listeners.js
+++ b/webapp/app/js/listeners.js
@@ -27,10 +27,10 @@ KylinApp.run(function ($rootScope, $http, $location, 
UserService, Authentication
 
   $rootScope.$on("$routeChangeStart", function () {
       AuthenticationService.ping(function (data) {
+        UserService.setCurUser(data);
         if(!data.userDetails){
           $location.path(UserService.getHomePage());
         }else{
-          UserService.setCurUser(data);
           //get project info when login
           if (!ProjectModel.projects.length&&!$rootScope.userAction.islogout) {
 

Reply via email to