changeset 1846:ca2c9a7f06c6

PageEditor.renamePage: acl request fixed
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 02 Mar 2007 21:44:28 +0100
parents 6ccc22836dd1
children c935a4f09f90
files MoinMoin/PageEditor.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Fri Mar 02 05:00:52 2007 +0100
+++ b/MoinMoin/PageEditor.py	Fri Mar 02 21:44:28 2007 +0100
@@ -499,8 +499,8 @@
         request = self.request
         _ = self._
 
-        if not (request.user.may.delete(self.page_name)
-                and request.user.may.write(newpagename)):
+        if not request.user.may.delete(self.page_name)
+                or not request.user.may.write(newpagename):
             msg = _('You are not allowed to rename this page!')
             raise self.AccessDenied, msg