Recent Changes - Search:

PmWiki

pmwiki.org

LimitWikiGroups

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


Question

Is it possible to prevent users from creating new WikiGroups?

Answer

Yes. Essentially, you just set PmWiki's $GroupNamePattern variable to only accept the group names you want to define. For example, to limit pages to the "PmWiki", "Main", "Profiles", and "Example" groups, add the following to local/config.php:

   $GroupNamePattern = '(?:PmWiki|Main|Profiles|Example)';

With this setting, only the listed groups will be considered valid WikiGroups. You can add more groups to the list by placing additional group names separated by vertical braces (|).

Contributors

  • Pm, 2-Mar-2004

pmwiki-2.2.0-beta68 -- Last modified by {{simon}}

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

Edit - History - Print - Recent Changes - Search
Page last modified on September 04, 2008, at 07:07 PM