From ba866df8bdfa8c5d84ab5546118b8d58425ea27c Mon Sep 17 00:00:00 2001 From: nikita Date: Fri, 13 Oct 2017 15:40:46 +0530 Subject: [PATCH] set admin role property in rootscope again --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 0d1a77c..030a65c 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -377,7 +377,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic $rootScope.userModules = userInfo.Modules; $rootScope.isVisibleLogin = false; - + $rootScope.haveRoleAdmin = true; if ($rootScope.refreshcheck == null) { @@ -388,6 +388,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic else { + $rootScope.haveRoleAdmin = false; + if (userInfo.LicenseInfo.IsTermAccepted) { $rootScope.userData = userInfo; $rootScope.userModules = userInfo.Modules; -- libgit2 0.21.4