How to get if the user has read permission on a given path using code.

Avatar

Avatar

ab86711137

Avatar

ab86711137

ab86711137

15-10-2015

I want to get if the logged-in user has read permission to a specified path. Please suggest to achieve it via code.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

kumaranf

Avatar

kumaranf

kumaranf

15-10-2015

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.St..., java.lang.String)

Answers (0)