changeset 3279:12364c64a49f

only render MissingHomePage if user_homewiki is the local wiki
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 17 Mar 2008 01:13:19 +0100
parents 3789b1eea314
children ef1313a4add2
files MoinMoin/Page.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Mon Mar 17 00:00:49 2008 +0100
+++ b/MoinMoin/Page.py	Mon Mar 17 01:13:19 2008 +0100
@@ -1368,7 +1368,8 @@
 
         @param request: the request object
         """
-        if request.user.valid and request.user.name == self.page_name:
+        if request.user.valid and request.user.name == self.page_name and \
+           request.cfg.user_homewiki in ('Self', request.cfg.interwikiname):
             missingpage = wikiutil.getLocalizedPage(request, 'MissingHomePage')
         else:
             missingpage = wikiutil.getLocalizedPage(request, 'MissingPage')