Commit 9b637142 authored by Aurel's avatar Aurel

invalid the cache when setting reference on a person otherwise

ERP5Security is not up to date


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6469 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4708c210
...@@ -35,6 +35,7 @@ from Products.ERP5.Document.Entity import Entity ...@@ -35,6 +35,7 @@ from Products.ERP5.Document.Entity import Entity
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.Utils import assertAttributePortalType from Products.ERP5Type.Utils import assertAttributePortalType
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.Cache import clearCache
try: try:
from Products import PluggableAuthService from Products import PluggableAuthService
...@@ -174,6 +175,8 @@ class Person(Entity, Node, XMLObject): ...@@ -174,6 +175,8 @@ class Person(Entity, Node, XMLObject):
break break
self._setReference(value) self._setReference(value)
self.reindexObject() self.reindexObject()
# invalid the cache for ERP5Security
clearCache()
security.declareProtected(Permissions.SetOwnPassword, 'setPassword') security.declareProtected(Permissions.SetOwnPassword, 'setPassword')
def setPassword(self, value) : def setPassword(self, value) :
......
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