[pmwiki-users] authgroup does not work

Patrick R. Michaud pmichaud at pobox.com
Sat Jun 9 17:05:46 CDT 2007


On Sat, Jun 09, 2007 at 05:52:23PM +0200, info at hassanein.ch wrote:
> Hi
> 
> I have created some user groups in Site.AuthUser.
> 
> If I put the following lines into a page, it is always true, meaning  
> even if the user is not in my_group.
> 
> (:if authgroup @my_group:)
> show this only if you are in my_group
> (:ifend:)
> 
> What am I doing wrong here?

The "authgroup" condition isn't part of the core -- it
requires a local customization:

    $Conditions['authgroup'] = '$GLOBALS["AuthList'][$condparm] > 0';

Pm



More information about the pmwiki-users mailing list