|
Main sidebar
|
PITS /
00946Summary: CondAuth() enables publish authorization level?
Created: 2007-07-01 20:41
Status: Closed (Answered)
Category: Documentation
From: HaganFox
Assigned:
Priority: 44
Version: 2.2.0-beta57
OS:
Description:
In PmWiki 2.2.0-beta57 with seems to have the unintended effect of A workaround to re-enable the publish button might be to add
or possibly
If CondAuth() is called too early, it is not aware of "Drafts". You could fix this by including drafts before calling CondAuth()
$EnableDrafts = 1;
$DefaultPasswords['publish'] = crypt('secret');
include_once("$FarmD/scripts/draft.php");
if (! CondAuth($pagename, 'edit')) { /* whatever */ }
Hope that helps. We should add this info to the Documentation. (Done.) --Petko |