Recent Changes - Search:

PmWiki

pmwiki.org

00946

Summary: CondAuth() enables publish authorization level?
Created: 2007-07-01 20:41
Status: Open
Category: Bug
From: HaganFox
Assigned:
Priority: 44
Version: 2.2.0-beta57
OS:

Description: In PmWiki 2.2.0-beta57 with $EnableDrafts enabled, using the CondAuth() function to test for edit authorization disallows publishing. Put another way, the second line here

   $EnableDrafts = 1;
   if (! CondAuth($pagename, 'edit')) { /* comment */ }

seems to have the unintended effect of

   $EnablePublishAttr = 1;

A workaround to re-enable the publish button might be to add

$DefaultPasswords['publish'] = $DefaultPasswords['edit'];

or possibly

$DefaultPasswords['publish'] = '';

Edit - History - Print - Recent Changes - Search
Page last modified on July 16, 2007, at 02:32 PM