diff --git a/product/ERP5/Document/Person.py b/product/ERP5/Document/Person.py index 8cced3a55d33fb018c49a55be4bba0d08a3fe108..e49620dc767c0043fcadbf17fa6f01806a9deee5 100644 --- a/product/ERP5/Document/Person.py +++ b/product/ERP5/Document/Person.py @@ -180,8 +180,8 @@ class Person(XMLObject): self._setReference(value) self.reindexObject() # invalid the cache for ERP5Security - clearCache() - + clearCache(cache_factory_list=('erp5_core_short', )) + security.declareProtected(Permissions.SetOwnPassword, 'setPassword') def setPassword(self, value) : """