Legacy Knowledge Base
Publicado Jul. 25, 0002

Liferay's permissions.inline.sql.check.enabled property

Written By

Liferay Support

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

When searching, guest users are able to see highlighted folders, categories, and threads when they have no permission to view them.

Resolution

During search, Liferay runs a permission check on each of the results to see if the user that is searching has rights to view the result in question. If the user has the right, the result will be shown, otherwise it will not be returned.

This functionality can be configured with the permissions.inline.sql.check.enabled property, which is set to true by default. Setting the property to false, the search will return results even if the user has no view permissions on them. The portal will run a permission check should the user try to open the result, and deny access if the necessary permissions are missing.

Example: Consider executing a search that would return 500 files from the Document Library. With permissions.inline.sql.check.enabled=true, the portal will run a permission check on each of the found documents and only show those to which the user has access. If the property is set to false, all 500 files are returned and shown.

The intent of this property is to make inline permission checks configurable, thereby giving an option to trade performance for added permission checks.

Did this article resolve your issue ?

Legacy Knowledge Base