changeset 2304:8eb96bfafef9

require a valid user by default for all preferences plugins
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 11 Jul 2007 11:39:18 +0200
parents 4f73af30fd75
children 5c75990712ca
files MoinMoin/userprefs/__init__.py MoinMoin/userprefs/oid.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userprefs/__init__.py	Wed Jul 11 11:38:56 2007 +0200
+++ b/MoinMoin/userprefs/__init__.py	Wed Jul 11 11:39:18 2007 +0200
@@ -62,4 +62,4 @@
             title should be listed or not and whether
             submissions are accepted.
         '''
-        return True
+        return self.request.user and self.request.user.valid
--- a/MoinMoin/userprefs/oid.py	Wed Jul 11 11:38:56 2007 +0200
+++ b/MoinMoin/userprefs/oid.py	Wed Jul 11 11:39:18 2007 +0200
@@ -29,7 +29,7 @@
     def allowed(self):
         for authm in self.request.cfg.auth:
             if isinstance(authm, OpenIDAuth):
-                return True
+                return UserPrefBase.allowed(self)
         return False
 
     def _handle_remove(self):