ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject [5/7] incubator-ranger git commit: RANGER-638 : Ranger admin should redirect back to login page when login cookies are no longer valid.
Date Wed, 09 Sep 2015 03:46:34 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/034e9de4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/034e9de4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/034e9de4

Branch: refs/heads/tag-policy
Commit: 034e9de4b41ba44fb03248bbad08339e9b74c69e
Parents: ab6494e
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:41:43 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/034e9de4/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