[pmwiki-users] Preventing new group creation

Patrick R. Michaud pmichaud at pobox.com
Tue Oct 3 11:02:09 CDT 2006


On Tue, Oct 03, 2006 at 11:29:01AM -0400, Pierre Racine wrote:
> Thanks Neil,
> 
> I missed this one. 
> The third method seems the better one for me. What is the use of the 
> "?:" at the beginning of
> 
> $GroupPattern = '(?:Site|PmWiki|Main|Profiles|Example)';

It prevents the parentheses from being treated as "capturing parens".
This is important because $GroupPattern is often interpolated into
larger regular expressions, and we don't want any parentheses
in $GroupPattern throwing off the index numbers of any later
captures in the larger pattern.

Pm



> > -----Message d'origine-----
> > De : pmwiki-users-bounces at pmichaud.com [mailto:pmwiki-users-bounces at pmichaud.com] De la part de
> > Neil Herber
> > Envoyé : 3 octobre 2006 11:10
> > À : Pierre Racine; pmwiki-users at pmichaud.com
> > Objet : Re: [pmwiki-users] Preventing new group creation
> > 
> > At 2006-10-03  10:36 AM -0400, Pierre Racine is rumored to have said:
> > >Hi list,
> > >
> > >I would like to keep a bit of control on the
> > >structure of the site and prevent group creation
> > >by person having edit rights. For now anybody
> > >with edit right can make a Group/Page link and
> > >edit the new page. I’m scared to end with tons of groups

> > >
> > >How can I prevent new group creation?
> > >
> > >My site use AuthUser.
> > >
> > >Thanks
> > >
> > >Pierre
> > 
> > See: http://www.pmwiki.org/wiki/Cookbook/LimitWikiGroups
> > 
> > 
> > Neil Herber
> > Corporate info at http://www.eton.ca/
> > 
> > 
> > _______________________________________________
> > pmwiki-users mailing list
> > pmwiki-users at pmichaud.com
> > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> 
> 
> _______________________________________________
> 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