web/views/cwproperties.py
branchstable
changeset 2401 890f6b990dd7
parent 2312 af4d8f75c5db
child 2403 74f7fa676a52
equal deleted inserted replaced
2398:a8d18e320ef3 2401:890f6b990dd7
   226 
   226 
   227 
   227 
   228 class CWPropertiesForm(SystemCWPropertiesForm):
   228 class CWPropertiesForm(SystemCWPropertiesForm):
   229     id = 'propertiesform'
   229     id = 'propertiesform'
   230     __select__ = (
   230     __select__ = (
   231         # we don't want guests to be able to come here
   231         (none_rset() & match_user_groups('users','managers'))
   232         match_user_groups('users', 'managers') &
   232         | (one_line_rset() & match_user_groups('users') & is_user_prefs())
   233         (none_rset() | ((one_line_rset() & is_user_prefs()) &
   233         | (one_line_rset() & match_user_groups('managers') & implements('CWUSer'))
   234                         (one_line_rset() & match_user_groups('managers'))))
       
   235         )
   234         )
   236 
   235 
   237     title = _('preferences')
   236     title = _('preferences')
   238 
   237 
   239     @property
   238     @property