You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Atanas Alexandrov <bs...@studserv.uni-leipzig.de> on 2006/01/29 14:33:03 UTC
Protect Document
I have created new document. How can I make this document only for the
users in our database accessible (without php)?
Thanks in advance,
CuPaKoB
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Protect Document
Posted by so...@apache.org.
On 1/29/06, Atanas Alexandrov <bs...@studserv.uni-leipzig.de> wrote:
> I have created new document. How can I make this document only for the
> users in our database accessible (without php)?
Checking security in XSL:
http://solprovider.com/lenya/security
Check security in XMAP:
<map:select type="parameter">
<map:parameter name="parameter-selector-test"
value="{access-control:user-id}"/>
<map:when test=""><map:call resource="deny"/></map:when> <!-- Not
logged in -->
<map:when test="solprovider"><map:call
resource="admin"/></map:when> <!-- Specific user -->
<map:otherwise><map:call resource="allow"/></map:otherwise> <!--
Logged in -->
</map:select>
You might also use {access-control:role-ids}.
There have been security improvements since Lenya 1.2.2, but I am not
knowledgeable about them. I do not know if they can distinguish
between Anonymous (not logged in) and Registered (logged in).
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org