[pmwiki-users] Permission structure
Patrick R. Michaud
pmichaud at pobox.com
Wed Jun 22 07:21:16 CDT 2005
On Wed, Jun 22, 2005 at 08:49:25AM +0200, Joachim Durchholz wrote:
> Patrick R. Michaud wrote:
> >
> >[...] I'm intending that each action will be able to provide the set
> >of permission levels it needs to check before authorizing access.
> >For example,
> >?action=edit needs to check both 'edit' and 'read' permissions,
> >?action=auth should check 'auth', 'edit', and 'read',
> >?action=upload should check 'upload' and 'read',
> >?action=comment should check 'comment' (or 'append'), 'edit', and
> >'read', etc.
>
> I wouldn't want the actions to hardwire the permissions that they
> require.
They aren't going to be hardwired, the permissions for each action
will be in an array:
$Authorization['edit'] = array('edit', 'read');
$Authorization['auth'] = array('auth', 'edit', 'read');
$Authorization['upload'] = array('upload', 'read');
$Authorization['diff'] = array('read');
$Authorization['source'] = array('read');
I think it's pretty rare that I hardwire anything into PmWiki,
unless there's a strong reason for doing so.
Pm
More information about the pmwiki-users
mailing list