Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Denied access to model object as it does not belong to current company
Hi,
I am getting "Denied access to model object as it does not belong to current company 282093" Error while i am rendering freemarker template .
In 7.4 liferay restricting other company objects
But in my case I trying to fetch basic document fileentry type only .
below is my code
<#assign DLFileEntryTypeService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService")>
${DLFileEntryTypeService.fetchDLFileEntryType(0)}
Same api is working in groovy but not working in freemarker
How can I get objects with companyId 0 (Liferay default created objects)
How Can I resolve this?
Thanks,
Saleem.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™