- Issue created by @jvogt
- π©πͺGermany jurgenhaas Gottmadingen
Is this in the context of the 2 core modules content_moderation and workflow? If so, I guess this needs some enhancement in Drupal core first, because the permissions for transitions can not be altered. I looked into
\Drupal\content_moderation\StateTransitionValidation
and there isn't any hook or event, which would allow ECA to hook into that.However, the permissions for each transition are granted to user roles. Those user roles are config entities, and those can be modified by ECA. That said, you could use ECA to remove that permission from the role(s) at the end of the application window and re-grant that permission to the role(s) when that window opens again.
- πΊπΈUnited States jvogt Seattle, WA
Yep, it's those two core modules. I think your suggestion will work for us. Thanks for your insights!
- Status changed to Fixed
5 months ago 3:42pm 4 June 2024 - π©πͺGermany jurgenhaas Gottmadingen
Thanks for your feedback. Closing as fixed.
Automatically closed - issue fixed for 2 weeks with no activity.