Merge pull request #810 from sameerawickramasekara/master

Fix wso2/product-iots#1364
merge-requests/1/head
sinthuja 7 years ago committed by GitHub
commit 2b1cd04172

@ -104,7 +104,7 @@ public class DeviceAuthorizer implements Authorizer {
List<DeviceIdentifier> devices = deviceAuthorizationResult.getAuthorizedDevices();
if (devices != null && devices.size() > 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;
}
}

Loading…
Cancel
Save