From d7c77eb13a25a7490cd920edd76b8c6f87ea1dbd Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 17 Sep 2018 13:14:01 +0530 Subject: [PATCH] fixed bug 34241 admin is not visible fot test acc and testuser --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 12 +++++++++++- 400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html | 2 +- 400-SOURCECODE/AIAHTML5.Web/index.aspx | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index e35382e..bd78b97 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -363,8 +363,18 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A $rootScope.userModules = result.Modules; //1. set haveRoleAdmin = false because LicenseInfo is not null - $rootScope.haveRoleAdmin = false; + if (result.LicenseTypeId != 5) { + + $rootScope.haveRoleAdmin = true; + + } + if (result.UserTypeId == 8){ + + $rootScope.haveRoleAdmin = false; + } + $("#modestyDiv").css("pointer-events", "none"); + $("#modestyDiv").css("opacity", 0.5); //2. if ($scope.currentUserDetails == null || $scope.currentUserDetails == undefined || $scope.currentUserDetails == "") { diff --git a/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html b/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html index 8bd06d1..2a7f896 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html @@ -51,7 +51,7 @@ -