[pmwiki-users] identify current authorization level

H. Fox haganfox at users.sourceforge.net
Wed Jul 26 14:26:44 CDT 2006


On 7/26/06, Henrik Bechmann <henrik at bechmannsoftware.com> wrote:
> Thanks Patrick,
>
> Unfortunately this seems to have the side effect on my system of
> rendering the login screen unsuccessful for all attempts (entering a
> legitimate password just returns to the password screen -- when I remove
> the two lines of code you gave me, all is normal again). Is there
> another way?
>
> Thanks,

Try

$pagename = ResolvePageName($pagename);
$page = RetrieveAuthPage($pagename, 'read', false, READPAGE_CURRENT);
if ( @$page['=auth']['edit']) {
  # Visitor is authorized to edit.
}

Hagan




More information about the pmwiki-users mailing list