Fix device listing issue

revert-70aa11f8
charitha 8 years ago
parent 202e0d5619
commit bb60acd105

@ -57,6 +57,16 @@ var deviceListing, currentUser, groupName, groupOwner;
* DOM ready functions. * DOM ready functions.
*/ */
$(document).ready(function () { $(document).ready(function () {
var permissionSet = {};
$.setPermission = function (permission) {
permissionSet[permission] = true;
};
$.hasPermission = function (permission) {
return permissionSet[permission];
};
deviceListing = $("#device-listing"); deviceListing = $("#device-listing");
currentUser = deviceListing.data("current-user"); currentUser = deviceListing.data("current-user");

Loading…
Cancel
Save