jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From François Cassistat <f.cassis...@maya-systems.com>
Subject Re: Being an Admin how to check user permission
Date Sun, 05 Jun 2011 14:45:39 GMT
There may be a better way, but you could try using Session.impersonate(...) with the user you
want to test.

I'm not sure if it is fast, though.


F!


Le 2011-06-05 à 6:46 AM, husbas a écrit :

> Being logged in a Admin, how can I check whether a user has access to a node
> or not?
> something like 
> 
> session.hasPermissions(String nodePath, String actions, String asUser);
> 
> 
> 
> --
> View this message in context: http://jackrabbit.510166.n4.nabble.com/Being-an-Admin-how-to-check-user-permission-tp3574834p3574834.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message