mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Updating device module for permissions - Ui
This commit is contained in:
parent
2d864bf02e
commit
6a9225d249
@ -40,7 +40,7 @@ deviceModule = function () {
|
||||
|
||||
// var deviceCloudService = devicemgtProps["httpsURL"] + "/common/device_manager";
|
||||
|
||||
/**
|
||||
/**
|
||||
* Only GET method is implemented for now since there are no other type of methods used this method.
|
||||
* @param url - URL to call the backend without the host
|
||||
* @param method - HTTP Method (GET, POST)
|
||||
@ -273,6 +273,9 @@ deviceModule = function () {
|
||||
deviceObject[constants["DEVICE_PROPERTIES"]] = properties;
|
||||
response["content"] = deviceObject;
|
||||
return response;
|
||||
} else if (backendResponse.status == 401) {
|
||||
response["status"] = "unauthorized";
|
||||
return response;
|
||||
} else {
|
||||
response["status"] = "error";
|
||||
return response;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user