[Zope] LocalFS fix
Bertrand Croq
bcroq@virtual-net.fr
Thu, 13 Sep 2001 15:34:29 +0200
--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
there is a problem in LocalFS.py: the permission to overwrite files is
called 'Overwrite local files' but manage_overwrite() tests 'Overwrite files'
permission... Here is the patch.
--
Bertrand Croq - VIRTUAL NET (http://www.virtual-net.fr)
80, avenue des Buttes de Coesmes - 35700 RENNES
tel: +33 2 23 21 06 30 - fax: +33 2 99 38 16 85
--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="localfs.patch"
--- /tmp/lib/python/Products/LocalFS/LocalFS.py Tue Mar 13 08:12:44 2001
+++ LocalFS.py Thu Sep 13 15:00:46 2001
@@ -675,7 +675,7 @@
except: pass
try: user=REQUEST['AUTHENTICATED_USER']
except: user = None
- if user is None or not user.has_permission('Overwrite files', self):
+ if user is None or not user.has_permission('Overwrite local files', self):
raise 'Unauthorized', HTTPResponse()._error_html(
'Unauthorized',
"Sorry, you are not authorized to overwrite files.<p>")
--qDbXVdCdHGoSgWSk--