changeset 2035:a7fb50fd67f6

user: fixed for MMDE superuser mode for logged in users only
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 01 May 2007 21:27:15 +0200
parents b85e5f7fc3f2
children 8f709cef5aa5
files MoinMoin/user.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Mon Apr 30 14:30:10 2007 +0200
+++ b/MoinMoin/user.py	Tue May 01 21:27:15 2007 +0200
@@ -926,7 +926,7 @@
     def isSuperUser(self):
         """ Check if this user is superuser """
         request = self._request
-        if request.cfg.DesktopEdition and request.remote_addr == '127.0.0.1':
+        if request.cfg.DesktopEdition and request.remote_addr == '127.0.0.1' and request.user.valid:
             # the DesktopEdition gives any local user superuser powers
             return True
         superusers = request.cfg.superuser