# HG changeset patch # User Thierry Florac # Date 1529593109 -7200 # Node ID ff35457b30a6407dbbb00b2b7b8757cdce4b7b29 # Parent 2f25e871eea1d22043d10ce048f18ff0d1784f92 Apply constributor restrictions if publication request form (instead of publication form) diff -r 2f25e871eea1 -r ff35457b30a6 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)