[Moin-user] setting variables depeding if a user is logged in.

Juergen Hermann jh at web.de
Tue Apr 9 13:55:06 EDT 2002

On 08 Apr 2002 23:24:26 -0700, Adam Shand wrote:

>i'd like to set variables in moin_config.py to different variables
>depending on if a user is logged in or not.
>this would allow me to build a simple site for random visitors and a
>power site (with full wiki functionality) for users that log in.
>is there a simple test that can be performed to tell this or is this
>functionality still a ways off?



Note that the user, and thus the security policy, is created rather 
early in the request cycle, so (re-)setting config vars there is ok for 
_most_ things. Or you check the HTTP_COOKIE directly in moin_config.py.

Ciao, Jürgen

More information about the Moin-user mailing list