Hi Ondrej!

Thanks a lot for your answer :)
I'll try to catch the AccessDeniedException, but I think if this exception 
would've been thrown, it would have shown me in the logs.

Actually, I have already tried the AccessManager.. without success. This is the 
code I used in short:

[code]
MgnlContext.login(Security.getUserManager().getUser(this.username));
if (MgnlContext.getAccessManager("website").isGranted(node.getPath(), 11L)){
        System.out.println("DEBUG::: "+node.getPath()+" allowed");
} else {
        System.out.println("DEBUG::: "+node.getPath()+" not allowed");
}
[/code]

But it always enters the first if-part...
I wonder how I can set the user correctly... I tried to check the user after 
the MgnlContext.login via MgnlContext.getUser() which works flawless. But the 
permissions aren't correct :/

Best,
Daniel

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=ed9cb831-5d6a-4e43-a746-090cf0347cd3


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to