Apply constributor restrictions if publication request form (instead of publication form)
authorThierry Florac <thierry.florac@onf.fr>
Thu, 21 Jun 2018 16:58:29 +0200
changeset 725 ff35457b30a6
parent 724 2f25e871eea1
child 726 9a3eda154460
Apply constributor restrictions if publication request form (instead of publication form)
src/pyams_content/shared/common/zmi/workflow.py
--- a/src/pyams_content/shared/common/zmi/workflow.py	Thu Jun 21 16:35:00 2018 +0200
+++ b/src/pyams_content/shared/common/zmi/workflow.py	Thu Jun 21 16:58:29 2018 +0200
@@ -832,7 +832,7 @@
                (manager_restrictions.check_access(context, request=request)) and \
                (not manager_restrictions.publication_checks):
                 return None
-        if isinstance(form, PublicationForm):
+        if isinstance(form, PublicationRequestForm):
             restrictions = IContributorRestrictions(context, None)
             if restrictions is not None:
                 contributor_restrictions = restrictions.get_restrictions(principal_id)