[pmwiki-users] Setting page privs from config.php
bartolin at gmx.de
Thu Oct 1 02:06:12 CDT 2009
* On 2009-09-30 DaveG (pmwiki at solidgone.com) wrote:
> > Change the page's attributes using "?action=attr" to your edit
> > password. The page attributes override the group attributes for
> > that page only.
> 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. (Look at sections "Authentication" and the faq
section "Why shouldn't passwords ...").
If I'm not mistaken that page also describes a way to override a group
(edit) password in a page customization file (see section "Preventing
group-Level configurations" and the faq section "Isn't that processing
order ..."): In your page customization file:
1. if you need it, include the group customization file with
2. set your password
3. prevent loading of group customization: $EnablePGCust=0;
Hope that helps
-------------- 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/20091001/39b620fc/attachment.bin
More information about the pmwiki-users