changeset 4893:c1ed36a3fd5e

userprefs.suid: allowed only if request.cfg.auth_have_login is given
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 24 Jul 2009 10:22:35 +0200
parents 802cc30f1937
children 98a6aa0ce17e
files MoinMoin/userprefs/suid.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userprefs/suid.py	Wed Jul 22 23:31:05 2009 +0200
+++ b/MoinMoin/userprefs/suid.py	Fri Jul 24 10:22:35 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._