DiffAccessLevel

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


Question

How can I use the edit password to limit viewing of a page's history?

Answer

In PmWiki versions 1.0 and later, set the following in your configuration file:

    $DiffAccessLevel = 'edit';

Discussion

By default, PmWiki sets $DiffAction to require only 'read' permission on pages to be able to view the history. The setting above allows this to be changed to 'edit' or any other access level.

The reason PmWiki defaults to requiring only 'read' access is that many sites may want to allow readers to be able to quickly see what has changed on a page, even if those readers are unable to edit the page.

Versions of PmWiki prior to 1.0.0 may wish to see http://www.pmichaud.com/pipermail/pmwiki-users_pmichaud.com/2004-June/005439.html for another method of restricting access to the page history function based on edit passwords.

Contributors

  • Pm -- 19 Jul 2004

pmwiki-2.2.113 -- Last modified by {{michi}}?

from IP: 85.171.160.186 ip should be disabled by default for security reasons