I'm preparing to migrate from Liferay 7.3.5GA6 to 7.3.7GA8 version. I'm facing an error on a ftl template that states: Denied access to model object as it does not belong to current company 20116 The code in which this happens is the following:
<#list AssetEntryAssetCategoryRelLocalService.getAssetEntryAssetCategoryRelsByAssetCategoryId(category.getCategoryId()) as curEntry>
This is working properly on 7.3.5GA6. I've found 2 similar bugs on Liferay Bug tracking, https://issues.liferay.com/browse/LPS-133074 and https://issues.liferay.com/browse/LPS-125553 but they're not exactly the same. I presume it's something related to new security capabilities from one of the bugs, but I'm not sure if in my case it's a bug or really it's working as expected