[pmwiki-users] SideBar Blank for User with Limited Privileges

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 3 10:46:15 CDT 2006


On Tue, Jul 25, 2006 at 08:13:58PM -0400, Jeff Alperin wrote:
>    I'm trying to give one set of wiki users (editors) access to only a part
>    of my wiki, specifically, a single wikigroup  ("DNA").  I've set up two
>    user groups using Auth.User: @admins and @editors.  In the
>    /local/config.php, I've set all the default passwords to @admins.  Then,
>    for the DNA group, I've set the read and edit passwords to @admins,
>    @editors using the action=attr technique.  So, a member of the @editors
>    group should be only be able to access (and edit) the DNA group.  Now my
>    questions:
> 
>    1) Is there a way for the @editors member to be automatically access the
>    homepage of the DNA group (DNA.DNA) after logging in?  

In config.php, after loading authuser.php, try:

    if ($pagename == '' && $AuthList['@editors'] > 0) Redirect('DNA.DNA');

>    2) I created a DNA.SideBar page, but the @editors users can't see it when
>    they log into any of the DNA.xxx pages.  (It's blank.)  

This should work, so I suspect a permissions problem somewhere.  Is there
a password set on DNA.SideBar?  You might try clearing passwords on that
page and see what you get.

Pm





More information about the pmwiki-users mailing list