[pmwiki-users] Question about (:if expr auth admin:)

Christopher Dant cdant at virsa.com
Tue Sep 20 09:12:01 CDT 2005


> > New to PM Wiki and so far loving it for use on our company 
> intranet - in
> > particular the combination of groups-permissions and 
> userauth-0.64. Much
> > of our site will be a 'traditional' wiki, and some of it 
> will be used
> > for distributing and working with restricted documents. I'm 
> going to try
> > to explain what's going on for me - sorry for the long post!
> >
> > I've got the wiki running pretty well on XP SP2:
> > - pmwiki-2.0.6
> > - cookbook\extendcond.php
> > - Apache/2.0.54
> > - PHP Version 5.0.4
> >
> > I'm looking for a way to conditionally display text on 
> read-only pages.
> > I learned about conditional expressions of the sort:
> >
> > (:if expr auth admin:)Only Admins see this!(:ifend:)

... Snip ...

> Hi,
> 
> AFAIK, the 'auth' condition is tight with the internal authuser 
> authentication mecanism (different from the cookbook recipe 
> userauth-0.64).
> 
> You may try things like:
> 
> ===8<---
> Auth level is
> (:if auth admin:)admin
> (:if auth attr :)attr
> (:if auth edit :)edit
> (:fi:)
> ===8<---
> 
> and open the page with different credentials to see if the 
> basic conditions 
> are met as expected.
> 
> Hope this help,
> Dom

I think userauth-0.64 may be the culprit, thanks. I commented it out of
my config.php and things seem to work better. I can't say definitely
that this is the problem however, because I'm still learning the wiki.

Too bad, because I really value the form-based user management solution.
I'll have to see if I can figure out the problem.

Chris 




More information about the pmwiki-users mailing list