Commit 19dc4415 authored by Vincent Pelletier's avatar Vincent Pelletier

Person: Fix _setReference modification detection.

Also, simplify docstring.
parent 969972ca
......@@ -181,14 +181,11 @@ class Person(Node, LoginAccountProviderMixin, EncryptedPasswordMixin, ERP5UserMi
def _setReference(self, value):
"""
Set the user id. This method is defined explicitly, because:
- we want to apply a different permission
- we want to prevent duplicated user ids, but only when
PAS _AND_ ERP5UserManager are used
Set the user id. This method is defined explicitly, because
we want to prevent duplicated user ids, but only when
PAS _AND_ ERP5UserManager are used
"""
if value != self.getUserId():
if value != self.getReference():
if value:
self.__checkUserIdAvailability(
pas_plugin_class=ERP5UserManager,
......
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