# HG changeset patch # User Thierry Florac # Date 1523547909 -7200 # Node ID 8e6fcde3cb952d8e8c7346cd8a9cd64222d638f8 # Parent 5bd7496f674f39c090e8dd511fa4a011e9e37d1f Don't use widgets prefix:because "principal_id" is used before "updateWidgets()" method call diff -r 5bd7496f674f -r 8e6fcde3cb95 src/pyams_content/shared/common/zmi/security.py --- a/src/pyams_content/shared/common/zmi/security.py Thu Apr 12 16:42:57 2018 +0200 +++ b/src/pyams_content/shared/common/zmi/security.py Thu Apr 12 17:45:09 2018 +0200 @@ -191,7 +191,7 @@ @cached_property def principal_id(self): principal_id = self.request.params.get('principal_id') or \ - self.request.params.get('{0}{1}principal_id'.format(self.prefix, self.widgets.prefix)) + self.request.params.get('{0}widgets.principal_id'.format(self.prefix)) if not principal_id: raise NotFound return principal_id