ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [29/50] [abbrv] incubator-ranger git commit: RANGER-638 : Ranger admin should redirect back to login page when login cookies are no longer valid.
Date Thu, 03 Mar 2016 00:06:53 GMT
RANGER-638 : Ranger admin should redirect back to login page when login cookies are no longer
valid.

Signed-off-by: Velmurugan Periasamy <vel@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/7f1dff33
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/7f1dff33
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/7f1dff33

Branch: refs/heads/HDP-2.3.2-groupid
Commit: 7f1dff332cc3a6e801ea70445dd999884b1e27ae
Parents: 3674001
Author: Gautam Borad <gborad@gmail.com>
Authored: Wed Sep 2 16:59:30 2015 +0530
Committer: Velmurugan Periasamy <vel@apache.org>
Committed: Mon Sep 7 01:51:17 2015 -0400

----------------------------------------------------------------------
 security-admin/src/main/webapp/scripts/utils/XAUtils.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/7f1dff33/security-admin/src/main/webapp/scripts/utils/XAUtils.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/utils/XAUtils.js b/security-admin/src/main/webapp/scripts/utils/XAUtils.js
index a83b22a..6d84d1c 100644
--- a/security-admin/src/main/webapp/scripts/utils/XAUtils.js
+++ b/security-admin/src/main/webapp/scripts/utils/XAUtils.js
@@ -1012,6 +1012,9 @@ define(function(require) {
 			var XAGlobals = require('utils/XAGlobals');
 			var that = this;
 			var vXPortalUser = SessionMgr.getUserProfile();
+			if(_.isEmpty(vXPortalUser.attributes)){
+				return controller;
+			}
 			var denyControllerActions = [];
 			var denyModulesObj = [];
 			var userModuleNames = _.pluck(vXPortalUser.get('userPermList'),'moduleName');


Mime
View raw message