The following 132 words could not be found in the dictionary of 615 words (including 615 LocalSpellingWords) and are highlighted below:

actions   Add   add   admin   Admin   admins   allows   an   and   Anti   antispam   assign   at   Auto   automatically   Bad   base   basic   be   because   beginning   by   careful   certain   class   Config   config   Control   defaults   define   defined   deleting   disable   dynamically   easier   edit   editing   edits   either   enable   fetch   For   for   from   get   give   groups   Help   If   implements   import   in   indentation   inherit   instance   interface   keep   key   later   Lists   make   Master   mean   Mechanics   mechanism   member   module   most   name   new   notably   of   On   on   only   option   or   original   overwritten   own   page   pagename   pages   permissions   Permissions   policy   Policy   protection   reasons   request   restrictions   return   rights   samples   Samples   security   Security   see   See   self   should   so   some   ssl   sync   system   that   The   the   Then   this   to   user   users   using   util   utility   version   via   want   way   when   wikiconfig   will   with   without   work   write   Write   writeable   you   your  


SecurityPolicy is a config option that allows wiki admins to dynamically enable or disable certain key actions in a MoinMoin wiki, most notably editing and deleting content. See also HelpOnAccessControlLists for an easier way.


Security restrictions in a MoinMoin wiki work by the interface defined in the module. The Permissions class implements the basic interface for user permissions and system policy. If you want to define your own policy, inherit from that base class, so that when new permissions are defined, you get the defaults.

Then either assign your new class to Config.SecurityPolicy in (and I mean the class, not an instance of it), or define your class as a member of class Config in and name it SecurityPolicy.

Anti-Spam protection

If you enable the "antispam" utility your wiki will fetch the page BadContent and keep automatically in sync with the original version. Do not edit it, because your edits will be overwritten.

Add this at the beginning of your wikiconfig:

from MoinMoin.util.antispam import SecurityPolicy

SSL-only Write

If you want for security reasons that users do not edit the wiki without using SSL you should add:

# add this at the of your config settings:
from import Permissions

   # add this later , careful with indentation
   # make wiki only writeable via SSL
    class SecurityPolicy(Permissions):
        def write(self, pagename):
                return (self.request.is_ssl
                        and Permissions.write(self, pagename)


For samples on using this mechanism, see SecurityPolicy.

See also

  • HelpOnAutoAdmin when you want to give some users or user groups admin rights on some pages.