Merge pull request #451 from inoshperera/master

adding a button and connection to ios factory reset backend API
revert-dabc3590
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")) { if (userModule.isAuthorized("/permission/admin/device-mgt/devices/owning-device/operations/ios/ring")) {
permissions["ios"].push("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 // adding windows operations related permission checks
permissions["windows"] = []; permissions["windows"] = [];

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

Loading…
Cancel
Save