[pmwiki-users] Fwd: new page attribute (related question)
Patrick R. Michaud
pmichaud at pobox.com
Tue Sep 26 08:56:07 CDT 2006
On Tue, Sep 26, 2006 at 09:46:53AM -0400, The Editor wrote:
> On 9/25/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > > Linking them of course to certain actions?
>
> The FAST Data recipe works by setting the form action to data, so when
> it is submitted, the recipe is called.
>
> I thought I might be able to set Data as a password attribute on the
> group attributes page, so where desired the recipe (action=data) could
> be allowed only if the submitter did have the appropriate permissions.
Oh. If you want to restrict an action to specific authorizations,
use $HandleAuth. For example, to restrict ?action=data to people
with edit permissions, use:
$HandleAuth['data'] = 'edit';
If you want to create a custom authorization evel called 'data',
and then restrict ?action=data to that level, use:
## Create a 'data' authorization level
$DefaultPasswords['data'] = '*';
## Add 'passwddata' as a page attribute:
$PageAttributes['passwddata'] = '$[Enter new data password]:';
## Set ?action=data to require 'data' authorization
$HandleAuth['data'] = 'data';
Pm
More information about the pmwiki-users
mailing list