[pmwiki-users] auto-assign attributes to a page with given name
pbowers at pobox.com
Sat Aug 23 14:56:55 CDT 2008
There may be a simpler method, but here's how I would go about it:
function SetAuths($pagename, &$page, &$new)
if (@$new['text'] > '') return;
if (preg_match("/\.GroupConfig$/i", $pagename))
$new['editpasswd'] = '@admins';
Note this is absolutely untested - just typed into the email here, so
it will probably require some tweaking and there's no guarantee that
the concept itself works...
On Sat, Aug 23, 2008 at 5:27 PM, noskule <noskule at gmx.net> wrote:
> hi list
> Does someone now if/how to assign attributes to a page with a given name.
> For example, I want that pages with names like "GroupConfig" are
> readable be everyone, but writeable only by the authgroup @admins.
> If a new group is created this should be applied automatically.
> thanks for any hints
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
More information about the pmwiki-users