On 1/29/06, Atanas Alexandrov <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to