changeset 1877:1807dc96c0f3

fix crash in ACL check when using xmlrpc
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 11 Mar 2007 23:00:09 +0100
parents 5afb427026ea
children 970334e27707
files MoinMoin/security/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/security/__init__.py	Sun Mar 11 13:09:40 2007 +0100
+++ b/MoinMoin/security/__init__.py	Sun Mar 11 23:00:09 2007 +0100
@@ -23,7 +23,7 @@
 #############################################################################
 
 def _check(request, pagename, user, right):
-    if pagename == request.page.page_name:
+    if request.page is not None and pagename == request.page.page_name:
         p = request.page # reuse is good
     else:
         p = Page(request, pagename)