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

Jeff Kunce jeff at corrt.com
Tue Apr 9 14:26:04 EDT 2002


At 11:24 PM 4/8/2002 -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.

The easiest way for me has been to set up two separate directories, each 
containing moin.cgi and moin_config.py. One is set up for "guest" access 
(read only.) The other is set up for full access, but is limited to 
authorized users (with .htaccess or MS permissions or whatever.)

If you don't want to publish two URLs, you can put a link from your wiki 
pages to the full access moin.cgi. For example, at 
http://www.corrt.com/troop10 I have an "Edit this site" link on the front page.

   --Jeff






More information about the Moin-user mailing list