changeset 4901:6c8aa68b803c

userprefs.suid: requires an auth_method which can logout (corrected changeset 4893:c1ed36a3fd5e)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 24 Jul 2009 16:34:27 +0200
parents 19e9f1edb2f1
children 6049883eb89e
files MoinMoin/userprefs/suid.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userprefs/suid.py	Fri Jul 24 14:19:24 2009 +0200
+++ b/MoinMoin/userprefs/suid.py	Fri Jul 24 16:34:27 2009 +0200
@@ -26,7 +26,7 @@
         self.name = 'suid'
 
     def allowed(self):
-        return (self.request.cfg.auth_have_login and
+        return (self.request.user.auth_method in self.request.cfg.auth_can_logout and
                UserPrefBase.allowed(self) and self.request.user.isSuperUser())
 
     def handle_form(self):