Solved
How to get if the user has read permission on a given path using code.
I want to get if the logged-in user has read permission to a specified path. Please suggest to achieve it via code.
I want to get if the logged-in user has read permission to a specified path. Please suggest to achieve it via code.
try this:
session.checkPermission("/content/someNodePath", "read");
Ref: http://www.day.com/maven/jsr170/javadocs/jcr-2.0/javax/jcr/Session.html#checkPermission(java.lang.String, java.lang.String)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.