[pmwiki-users] Setting page privs from config.php
bartolin at gmx.de
Fri Oct 2 02:39:50 CDT 2009
* On 2009-10-02 Hans (design5 at softflow.co.uk) wrote:
> > My suggestion was to override the global passwords (from config.php)
> > in a page customization file (say Main.Test.php for page Main.Test).
> I think it is unwise to set any default password
> in a page or group customisation file, because
> a page protected in such a way will not be protected if it is for
> instance included by another page.
> To have proper protection for an individual page its
> password attributes need to be set in the page with action=attr,
> or for the group in the GroupAttributes page with action=attr.
> Do not use a page customization php file for this!
I agree. That was why I wrote in my first post on this topic:
* On 2009-10-01 Christian Bartolomaeus (bartolin at gmx.de) wrote:
> > I'm actually looking for a way to do this from config.php, rather
> > than ?action=attr.
> I don't know of a way to do that via the main configuration file
> config.php. But I think you can use a page customization file -- tough
> it is not recommended to set passwords in this way. Please take a look
> for an explanation why it's not advised to set passwords via a page
> customization file. [...]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20091002/85c4f17b/attachment.bin
More information about the pmwiki-users