Merge pull request #451 from inoshperera/master

adding a button and connection to ios factory reset backend API
merge-requests/1/head
inoshperera 8 years ago committed by GitHub
commit d3c5625eec

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

@ -119,7 +119,8 @@ var operationModule = function () {
"LOCATION": "location",
"ENTERPRISE_WIPE": "enterprise-wipe",
"NOTIFICATION": "notification",
"RING": "ring"
"RING": "ring",
"WIPE_DATA": "wipe-data"
};
return "/api/device-mgt/ios/v1.0/admin/devices/" + featureMap[operationCode];
};
@ -1286,7 +1287,8 @@ var operationModule = function () {
"LOCATION": "fw-map-location",
"ENTERPRISE_WIPE": "fw-block",
"NOTIFICATION": "fw-message",
"RING": "fw-dial-up"
"RING": "fw-dial-up",
"WIPE_DATA": "fw-delete"
};
return featureMap[operationCode];
};

Loading…
Cancel
Save