From bb60acd1052e9945f511148036ad2f5ebb22d39d Mon Sep 17 00:00:00 2001 From: charitha Date: Wed, 2 Nov 2016 12:59:43 +0530 Subject: [PATCH] Fix device listing issue --- .../app/pages/cdmf.page.devices/public/js/listing.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js index 6fefcb9bcb..8629578d3d 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js @@ -57,6 +57,16 @@ var deviceListing, currentUser, groupName, groupOwner; * DOM ready functions. */ $(document).ready(function () { + + var permissionSet = {}; + $.setPermission = function (permission) { + permissionSet[permission] = true; + }; + + $.hasPermission = function (permission) { + return permissionSet[permission]; + }; + deviceListing = $("#device-listing"); currentUser = deviceListing.data("current-user");