[pmwiki-users] Method to selectively include template markup based on auth level

Patrick R. Michaud pmichaud at pobox.com
Fri Sep 2 16:41:32 CDT 2005


On Fri, Sep 02, 2005 at 05:29:30PM -0400, Radu wrote:
> It seems I missed some development again. What's the difference 
> between attr and admin?
>
> >if ($page['=auth']['attr']) /* visitor has attr permission */
> >if ($page['=auth']['admin']) /* visitor has admin permission */

"attr" == authorized to change page passwords (and other attributes)
"admin" == authorized to do anything

There isn't really a per-page "admin" attribute; the only way to
set the admin attribute is via $DefaultPasswords['admin'].  But
the code goes ahead and indicates "admin" authorization in the
page array anyway (it happens automatically; I didn't see any
point in writing special code to prevent it).

Pm




More information about the pmwiki-users mailing list