--- a/web/views/eproperties.py Wed Feb 18 15:16:45 2009 +0100
+++ b/web/views/eproperties.py Wed Feb 18 15:16:54 2009 +0100
@@ -221,12 +221,10 @@
class EPropertiesForm(SystemEPropertiesForm):
id = 'epropertiesform'
__select__ = (
- implements('EUser'),
# we don't want guests to be able to come here
- match_user_groups('users', 'managers'),
- chainfirst(none_rset),
- chainall(one_line_rset, is_user_prefs),
- chainall(one_line_rset, match_user_groups('managers'))
+ match_user_groups('users', 'managers') &
+ (none_rset | ((one_line_rset() & is_user_prefs) &
+ (one_line_rset() & match_user_groups('managers'))))
)
title = _('preferences')