[pmwiki-users] authuser & SetTmplDisplay

Hans design at softflow.co.uk
Tue Feb 21 11:21:49 CST 2006


Tuesday, February 21, 2006, 5:07:37 PM, noskule wrote:
> $page = RetrieveAuthPage($pagename, 'read', false, READPAGE_CURRENT);
> if (!@$page['=auth']['read']) SetTmplDisplay('PageCmdsFmt', 0);

perhaps:

SetTmplDisplay('PageCmdsFmt', 0);
$page = RetrieveAuthPage($pagename, 'read', false, READPAGE_CURRENT);
if ($page['=auth']['edit']) SetTmplDisplay('PageCmdsFmt', 1);


Best, 
~Hans                           





More information about the pmwiki-users mailing list