web/views/cwproperties.py
branchstable
changeset 2401 890f6b990dd7
parent 2312 af4d8f75c5db
child 2403 74f7fa676a52
--- a/web/views/cwproperties.py	Tue Jul 21 12:38:10 2009 +0200
+++ b/web/views/cwproperties.py	Tue Jul 21 12:56:29 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')