From 3cc2a8ca12d7da4136081f320567f597d7f0c92c Mon Sep 17 00:00:00 2001 From: dilanua Date: Mon, 15 Aug 2016 12:01:42 +0530 Subject: [PATCH] Fixing role retrieval issue in policy-mgt --- .../devicemgt/app/units/mdm.unit.policy.create/create.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/create.js b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/create.js index 012efb08e..82ae71a83 100644 --- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/create.js +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/create.js @@ -42,8 +42,6 @@ function onRequest() { } var policyWizard = new File("/app/units/" + utility.getTenantedDeviceUnitName(deviceType, "policy-wizard")); - log.error("/app/units/" + utility.getTenantedDeviceUnitName(deviceType, "policy-wizard")); - if (policyWizard.isExists()) { content["icon"] = utility.getDeviceThumb(deviceType); content["label"] = deviceTypeLabel; @@ -52,7 +50,7 @@ function onRequest() { } } - var result = userModule.getRolesByUserStore(); + var result = userModule.getRoles(); if (result["status"] == "success") { viewModelData["roles"] = result["content"]; }