changeset 4897:98a6aa0ce17e

merged moin/1.9-groups-dmilajevs
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 24 Jul 2009 14:08:56 +0200
parents c1ed36a3fd5e (diff) 4cc429db5bd1 (current diff)
children 19e9f1edb2f1
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userprefs/suid.py	Fri Jul 24 10:02:31 2009 +0200
+++ b/MoinMoin/userprefs/suid.py	Fri Jul 24 14:08:56 2009 +0200
@@ -26,7 +26,8 @@
         self.name = 'suid'
 
     def allowed(self):
-        return UserPrefBase.allowed(self) and self.request.user.isSuperUser()
+        return (self.request.cfg.auth_have_login and
+               UserPrefBase.allowed(self) and self.request.user.isSuperUser())
 
     def handle_form(self):
         _ = self._