Fix device listing issue

merge-requests/7/head
charitha 8 years ago
parent 202e0d5619
commit bb60acd105

@ -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");

Loading…
Cancel
Save