mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge pull request #810 from sameerawickramasekara/master
Fix wso2/product-iots#1364
This commit is contained in:
commit
2b1cd04172
@ -104,7 +104,7 @@ public class DeviceAuthorizer implements Authorizer {
|
|||||||
List<DeviceIdentifier> devices = deviceAuthorizationResult.getAuthorizedDevices();
|
List<DeviceIdentifier> devices = deviceAuthorizationResult.getAuthorizedDevices();
|
||||||
if (devices != null && devices.size() > 0) {
|
if (devices != null && devices.size() > 0) {
|
||||||
DeviceIdentifier authorizedDevice = devices.get(0);
|
DeviceIdentifier authorizedDevice = devices.get(0);
|
||||||
if (authorizedDevice.getId().equals(deviceId) && authorizedDevice.getType().equals(deviceType)) {
|
if (authorizedDevice.getId().equals(deviceId) && authorizedDevice.getType().equalsIgnoreCase(deviceType)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user