Merge pull request #1147 from rasika/fix-1553

Fixing cannot publish policies without enrolling a device
This commit is contained in:
Rasika Perera 2018-01-09 13:58:24 +05:30 committed by GitHub
commit 83ae57a044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -558,7 +558,7 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
DeviceManagementDAOFactory.closeConnection();
}
if (requireDeviceInfo) {
if (!allDevices.isEmpty() && requireDeviceInfo) {
return this.getAllDeviceInfo(allDevices);
}
return allDevices;