Hi all! i have the following handler:


<handler name="navigation"> <redirect-to uri="cocoon:/login"/> <authentication uri="cocoon:/authenticate"/> </handler>

When i authenticate a user i get <ID>UserID</ID> and <role>User role</role>

I would like to have an admin area where only users with "admin role" can enter;
My admin area pipelin is this, and in comment is what i would like to do:


<map:match pattern="admin">
        <map:act type="auth-protect">
                <map:parameter name="handler" value="navigation"/>
                <!-- If user role ='admin' do this -->
                        <map:parameter name="use-request-parameters" value="true"/>
                        <map:generate type="jsp" src="jsp/admin_main.jsp"/>
                        <map:transform src="style/admin_main_html.xsl"/>
                        <map:serialize/>
                <!--else -->
                        <!TODO: error message -->
                <!-- end if -->
        </map:act>
</map:match>

i tried some selectors but without success; how to do it??

best regards, Davide


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to