Merge pull request #810 from sameerawickramasekara/master

Fix wso2/product-iots#1364
revert-dabc3590
sinthuja 7 years ago committed by GitHub
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…
Cancel
Save