Merge pull request #460 from inoshperera/master

adding UI for clear passcode
merge-requests/1/head
inoshperera 8 years ago committed by GitHub
commit 5fd20a6a3e

@ -81,6 +81,9 @@ function onRequest(context) {
if (userModule.isAuthorized("/permission/admin/device-mgt/devices/owning/operations/ios/wipe-data")) { if (userModule.isAuthorized("/permission/admin/device-mgt/devices/owning/operations/ios/wipe-data")) {
permissions["ios"].push("WIPE_DATA"); permissions["ios"].push("WIPE_DATA");
} }
if (userModule.isAuthorized("/permission/admin/device-mgt/devices/owning/operations/ios/clear-passcode")) {
permissions["ios"].push("CLEAR_PASSCODE");
}
// adding windows operations related permission checks // adding windows operations related permission checks
permissions["windows"] = []; permissions["windows"] = [];

@ -120,7 +120,8 @@ var operationModule = function () {
"ENTERPRISE_WIPE": "enterprise-wipe", "ENTERPRISE_WIPE": "enterprise-wipe",
"NOTIFICATION": "notification", "NOTIFICATION": "notification",
"RING": "ring", "RING": "ring",
"WIPE_DATA": "wipe-data" "WIPE_DATA": "wipe-data",
"CLEAR_PASSCODE": "clear-passcode"
}; };
return "/api/device-mgt/ios/v1.0/admin/devices/" + featureMap[operationCode]; return "/api/device-mgt/ios/v1.0/admin/devices/" + featureMap[operationCode];
}; };
@ -1288,7 +1289,8 @@ var operationModule = function () {
"ENTERPRISE_WIPE": "fw-block", "ENTERPRISE_WIPE": "fw-block",
"NOTIFICATION": "fw-message", "NOTIFICATION": "fw-message",
"RING": "fw-dial-up", "RING": "fw-dial-up",
"WIPE_DATA": "fw-delete" "WIPE_DATA": "fw-delete",
"CLEAR_PASSCODE": "fw-clear"
}; };
return featureMap[operationCode]; return featureMap[operationCode];
}; };

Loading…
Cancel
Save