mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix to ignore devicetype check for webclip
This commit is contained in:
parent
d1799e54e7
commit
200e7e69c2
@ -177,6 +177,8 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
||||
try {
|
||||
// Only for iOS devices
|
||||
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(true);
|
||||
// Ignore checking device type if app is a web clip
|
||||
if(!applicationDTO.getType().equals("WEB_CLIP")){
|
||||
if (DeviceTypes.IOS.toString().equalsIgnoreCase(APIUtil.getDeviceTypeData(applicationDTO
|
||||
.getDeviceTypeId()).getName())) {
|
||||
// TODO: replace getAssetByAppId with the correct one in DAO
|
||||
@ -196,6 +198,7 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
||||
vppManager.addAssociation(storedAsset, users);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (BadRequestException e) {
|
||||
String msg = "Device Type not found";
|
||||
log.error(msg, e);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user