[pmwiki-users] pagelist returns empty when logged as a read-only user

Patrick R. Michaud pmichaud at pobox.com
Thu Feb 1 15:16:31 CST 2007


On Thu, Feb 01, 2007 at 06:50:59PM +0100, Jean-Fabrice [gmail] wrote:
> I've been able to reproduce this issue on a fresh new 2.2.0 beta27
> using authuser.php script.

Okay, I'm attempting to reproduce this issue at 
http://www.pmichaud.com/sandbox/testauth/pmwiki.php .  (See below for
password details.)

> Setup :
> - Main.Homepage sets with read password id:*
> - others page of the initial tarball not modified
> - created two user in Site.AuthUser : user1 (normal user) and admin
> (members of @dmins)

Starting with a fresh 2.2.0-beta27 installation, I've set the
following in local/config.php:

    <?php if (!defined('PmWiki')) exit();
    
    $DefaultPasswords['admin'] = crypt('quick');
    include_once('scripts/authuser.php');

I've also created "user1" and "admin" accounts in Site.AuthUser,
with passwords of "password1" and "password2" respectively.
( http://www.pmichaud.com/sandbox/testauth/pmwiki.php?n=Site.AuthUser )

> if Main.HomePage has a (:pagelist:) markup in it, only admin can see
> the result of this pagelist. The result of pagelist does not appear to
> user1.

In http://www.pmichaud.com/sandbox/testauth/pmwiki.php?n=Main.HomePage
I've added a (:pagelist:) markup.  Logging in with user1/password1,
I'm able to view the results of the pagelist just fine.

So, there must be something else .... ?

Pm


> 2007/2/1, Jean-Fabrice [gmail] <jeanfabrice at gmail.com>:
> > Hi,
> >
> > I have a wikifarm hosting several sites. Each one needs user
> > authentication before going further.
> >
> > I just found that  when logged with admin or edit rights, on a page
> > having id:* read protection, I can view the result of a simple
> > (:pagelist:). If I logout and the login as a simple read user, I don't
> > see any result for the (:pagelist:).
> >
> > and...
> > yes, I have other pages on the site having id:* read protection
> > yes, I have $EnablePageListProtect set to 1 but it doesn't change
> > anything setting it to 0.
> >
> > Any hints on how to diagnose this issue ? I make an attempt to
> > reproduce this behaviour on pmwiki.org but attr action is protected.
> >
> > JF
> >
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users



More information about the pmwiki-users mailing list