cancel
Showing results for 
Search instead for 
Did you mean: 

Permissions check for nodes - How to get 'readable"

sergio
Champ in-the-making
Champ in-the-making
Hi all.

Is it possible in Lucene, starting from a predefined node of the repository, to get all the nodes for which a user has only read rights?

Starting from the user home, I have to navigate thoughout the tree in order to get only the nodes available for reading by the current user. Effectively, in my case it is possible that a node contains other child nodes not all of which are available to be read by the current user.

If the answer is no, should I test my only known way based on checking JCR read permission? This could be very expensive….

Hoping my question coudl be clear,

all the best.

Sergio
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

If you use the public SearchService, for any query, you will only see the nodes you can read. Nodes are always filtered as part of the query.

Regards

Andy