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.3.32 -- Last modified by {{simon}}

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