 * Allow all users from localhost to access the packaging system.
--- moin--main--1.5/MoinMoin/action/AttachFile.py	2005-12-29 20:52:25.244028800 +0100
+++ moin--local-branch--AlexanderSchremmer/MoinMoin/action/AttachFile.py	2005-12-30 00:18:03.225174400 +0100
@@ -258,7 +258,7 @@
                 viewlink = '<a href="%(baseurl)s/%(urlpagename)s?action=%(action)s&amp;do=view&amp;target=%(urlfile)s">%(label_view)s</a>' % parmdict
 
             if (packages.ZipPackage(request, os.path.join(attach_dir, file).encode(config.charset)).isPackage() and
-                request.user.name in request.cfg.superuser):
+                (request.user.name in request.cfg.superuser or request.remote_addr == "127.0.0.1")):
                 viewlink += ' | <a href="%(baseurl)s/%(urlpagename)s?action=%(action)s&amp;do=install&amp;target=%(urlfile)s">%(label_install)s</a>' % parmdict
             elif (zipfile.is_zipfile(os.path.join(attach_dir,file).encode(config.charset)) and
                 request.user.may.read(pagename) and request.user.may.delete(pagename)
@@ -479,7 +479,7 @@
          else:
             msg = _('You are not allowed to unzip attachments of this page.')
     elif request.form['do'][0] == 'install':
-         if request.user.name in request.cfg.superuser:
+         if request.user.name in request.cfg.superuser or request.remote_addr == "127.0.0.1":
             install_package(pagename, request)
          else:
             msg = _('You are not allowed to install files.')
