On Tue, Feb 21, 2012 at 12:04:48AM +0100, Thomas Lundgren wrote:
> Help! :)
>
> I´m trying to find a way to (in PHP) check if the user that makes
> PmWiki load a page are authorized to edit that particular page.
The CondAuth() function does what you want:
if (CondAuth($pagename, 'edit')) { ... }
You can provide either authorization levels ('read', 'edit',
'attr', 'admin') or action names ('browse', 'upload', 'source')
as the second argument to CondAuth().
Hope this helps,
Pm
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users