mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
adding UI for clear passcode
This commit is contained in:
parent
1e4983bdda
commit
fc3cb449be
@ -81,6 +81,9 @@ function onRequest(context) {
|
||||
if (userModule.isAuthorized("/permission/admin/device-mgt/devices/owning/operations/ios/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
|
||||
permissions["windows"] = [];
|
||||
|
||||
@ -120,7 +120,8 @@ var operationModule = function () {
|
||||
"ENTERPRISE_WIPE": "enterprise-wipe",
|
||||
"NOTIFICATION": "notification",
|
||||
"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];
|
||||
};
|
||||
@ -1288,7 +1289,8 @@ var operationModule = function () {
|
||||
"ENTERPRISE_WIPE": "fw-block",
|
||||
"NOTIFICATION": "fw-message",
|
||||
"RING": "fw-dial-up",
|
||||
"WIPE_DATA": "fw-delete"
|
||||
"WIPE_DATA": "fw-delete",
|
||||
"CLEAR_PASSCODE": "fw-clear"
|
||||
};
|
||||
return featureMap[operationCode];
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user