You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by do...@cocoon.apache.org on 2005/01/28 11:38:42 UTC
[Cocoon Wiki] New: PortalToolsCheckAccessAction
Date: 2005-01-28T02:38:42
Editor: JensMaukisch
Wiki: Cocoon Wiki
Page: PortalToolsCheckAccessAction
URL: http://wiki.apache.org/cocoon/PortalToolsCheckAccessAction
no comment
New Page:
= CheckAccessAction =
The CheckAccessAction is designed to check if a user has the neccessary rights to access a specific url. It is used where the PortalTools sitemap is mounted, so there is no need that you use the action in your plugin.
== Sample ==
{{{
<map:match pattern="plugins/*/**">
<map:act type="auth-protect">
<map:parameter name="handler" value="portal-handler"/>
<map:parameter name="application" value="portal"/>
<map:act type="check-access-action">
<map:parameter name="name" value="{ID}"/>
<map:parameter name="role" value="{role}"/>
<map:parameter name="url" value="{../1}/{../2}"/>
<map:mount uri-prefix="plugins/{../../1}" check-reload="yes" src="plugins/{../../1}/sitemap.xmap"/>
</map:act>
</map:act>
</map:match>
}}}