Apply constributor restrictions if publication request form (instead of publication form)
--- 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)