changeset 5585:5835fd165996

AttachFile._build_filelist: verifies readonly flag for unzip file link
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 25 Feb 2010 14:02:44 +0100
parents 327e180af6d9
children c68058eaa6be
files MoinMoin/action/AttachFile.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Mon Feb 22 10:22:19 2010 +0100
+++ b/MoinMoin/action/AttachFile.py	Thu Feb 25 14:02:44 2010 +0100
@@ -338,7 +338,7 @@
 
             try:
                 is_zipfile = zipfile.is_zipfile(fullpath)
-                if is_zipfile:
+                if is_zipfile and not readonly:
                     is_package = packages.ZipPackage(request, fullpath).isPackage()
                     if is_package and request.user.isSuperUser():
                         links.append(fmt.url(1, getAttachUrl(pagename, file, request, do='install')) +