[pmwiki-users] How to unprotect specific -Talk page in groupA and groupB

ABClf languefrancaise at gmail.com
Mon Nov 16 15:42:57 PST 2020


Hello Simon,

well, in my project, no, regular doc password pages only say how to
protect full site, or group, or individual page, but I can not find
the conditional syntax for unprotecting a set of pages according to
its name.

Could be something like locking everything first, then unlocking
special pattern name ones ; maybe :

$DefaultPasswords['edit'] = pmcrypt('mypassword');
if (preg_match('/-Talk$/', $pagename)) $DefaultPasswords['edit'] = '';



Le lun. 16 nov. 2020 à 10:26, Simon <nzskiwi at gmail.com> a écrit :
>
> From https://www.pmwiki.org/wiki/PmWiki/Security
> try https://www.pmwiki.org/wiki/PmWiki/Passwords
>
> hope this helps
>
> On Mon, 16 Nov 2020 at 10:20, ABClf <languefrancaise at gmail.com> wrote:
> >
> > Hello,
> >
> > I would like to give visitors the right to read/edit *-Talk pages in a
> > bunch of Groups.
> > I didn't find how to get it in the doc.
> >
> > as of now, my config has a site wide basic edit protection :
> > $DefaultPasswords['edit'] = pmcrypt('mypassword');
> >
> > Thank you.
> >
> > _______________________________________________
> > 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