cancel
Showing results for 
Search instead for 
Did you mean: 

hasPermission() for other than the current user?

hbf
Champ on-the-rise
Champ on-the-rise
Hi,

My application needs a way to call hasPermission(nodeRef, perm) for a different user (i.e., not the user who is currently authenticated). I need to do lots of such calls.

As authentication is bound to the current thread, the only way I see to achieve this is to create a new thread, in it log in as the different user and then use hasPermission() from within that thread – with some sort of producer-consumer code to get the information to the main thread.

This is very inefficient. Is there another way?

Thanks,
Kaspar
1 REPLY 1

hbf
Champ on-the-rise
Champ on-the-rise
Another thread is discussing this, currently.

I should have checked before, sorry.