[daisy] ACL check if a user in role x is loged in

Karel Vervaeke karel at outerthought.org
Mon Jun 2 09:24:55 CEST 2008


If you give a user two roles (say 'guest' and 'editor') than he or she
is able to switch between the two roles using the menu bar.

For more info about how you can set up users and the ACL, check the
documentation:

http://cocoondev.org/daisydocs-1_3/repository/general/37-cd.html
http://cocoondev.org/daisydocs-1_3/repository/general/19-cd.html
http://cocoondev.org/daisydocs-1_3/repository/general/9-cd.html

The most simple ACL that you need to get started looks like this:

If true:
  role:guest (read-only access)
  role:editor (read/write access)

HTH,
Karel

On Sun, 2008-06-01 at 11:19 +0200, Aleksandar Lazic wrote:
> Hi all,
> 
> I have just started with daisy and from the first view it is very very
> nice ;-)).
> 
> I have take a look into the searchable Archive but haven't found the
> right answer, maybe I have searched with wrong words.
> 
> Please can anybody point in to the right way so that I can find a
> solution for the follwoing issue:
> 
> I have a role 'x' and of course some other.
> 
> User have role 'x' and login then he is able to see the site with the
> documents for 'anonymous (normal Websurfer)' and for role 'x'.
> 
> I'am now in the 'Edit ACL' page and need a 'If expression'.
> 
> I thought something like:
> 
> select request.logid() = true
> 
> or similar.
> 
> Many thanks for help
> 
> Aleksandar Lazic
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy


More information about the daisy mailing list