[pmwiki-users] identify current authorization level

Tegan Dowling tmdowling at gmail.com
Thu Jul 20 15:17:23 CDT 2006


On 7/20/06, Henrik Bechmann <henrik at bechmannsoftware.com> wrote:
> How do I determine in PHP code if the current user has edit
> authorization (I don't use UserAuth or AuthUser, just the out-of-the-box
> password protection.).
>
> It appears that $AuthId is only set by UserAuth or AuthUser.
>
> I want to hide certain things from non-authors...

Dunno about PHP code, but within the wiki, you can use
(:if enabled AuthPw:) or (:if auth edit:) - see
http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup

HTH




More information about the pmwiki-users mailing list