Commit aed472f6 authored by Jérome Perrin's avatar Jérome Perrin

reindexObjectSecurity when changing the preference level


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4123 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5131b6cf
......@@ -38,12 +38,11 @@ class Priority:
USER = 3
class Preference( Folder ):
"""
An user preference
""" An user preference
"""
# CMF Type Definition
meta_type ='ERP5 Preference'
meta_type = 'ERP5 Preference'
portal_type = 'Preference'
add_permission = Permissions.AddPortalContent
isPortalContent = 1
......@@ -69,7 +68,8 @@ class Preference( Folder ):
def setPriority(self, priority) :
""" Sets the priority of the preference"""
self.priority = priority
self.reindexObjectSecurity()
security.declareProtected(Permissions.View, 'getPriority')
def getPriority(self) :
""" Returns the priority of the preference """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment