Make transition check configurable

Created on 8 April 2022, about 3 years ago
Updated 24 January 2025, 3 months ago

Problem/Motivation

In #3083615: Check if scheduled transitions are valid for editing user , a feature was introduced which denies users access to editing nodes that are scheduled to a transition they don't have access to.
While this is the right way to do in most cases, there might be situations where this behavior is not desired.

Steps to reproduce

In our case, we have a Person node type, which represents employees of a company. Some of them might have fixed-term contracts, so we use the Scheduler module to make sure they get unpublished automatically when the contract ends. We're also using Content Moderation with a pretty much default setup with an Editor role that is not allowed to publish or archive.

  • Image we're hiring a new employee with a 2-year contract. So we create a new Person node with a scheduled unpublication date of "".
  • During that 2-year period, editors might need to change some information, but they can't, due to the fact that they don't have permission to unpublish the node.

In this scenario, it feels wrong to deny access to editors. They should be able to create new drafts, which may be published by users with the appropriate permission, until finally the node gets unpublished automatically when the 2-year period is over.

Proposed resolution

Allow admins to opt in or out to this behavior through a configuration setting. Perhaps it's even necessary to do this on a per-bundle basis.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇩🇪Germany mrshowerman Munich

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024