web/views/cwproperties.py
changeset 2458 4d114865098f
parent 2381 caad2367d940
parent 2403 74f7fa676a52
child 2476 1294a6bdf3bf
--- a/web/views/cwproperties.py	Thu Jul 23 15:29:07 2009 +0200
+++ b/web/views/cwproperties.py	Thu Jul 23 15:33:03 2009 +0200
@@ -228,10 +228,9 @@
 class CWPropertiesForm(SystemCWPropertiesForm):
     id = 'propertiesform'
     __select__ = (
-        # we don't want guests to be able to come here
-        match_user_groups('users', 'managers') &
-        (none_rset() | ((one_line_rset() & is_user_prefs()) &
-                        (one_line_rset() & match_user_groups('managers'))))
+        (none_rset() & match_user_groups('users','managers'))
+        | (one_line_rset() & match_user_groups('users') & is_user_prefs())
+        | (one_line_rset() & match_user_groups('managers') & implements('CWUser'))
         )
 
     title = _('preferences')