Node is inaccessible when user schedules invalid transition

Created on 17 November 2022, over 2 years ago
Updated 17 June 2023, almost 2 years ago

Problem/Motivation

As a user who isn't allowed to publish content via content moderation, I can schedule a publish state. Doing so, makes the node inaccessible as long as the "invalid" publish state is scheduled. Giving the Forbidden notice "Scheduled transition is not valid for the given account."
Why is the user able to schedule a publish transition (while not allowed to) and only afterwards the node is made inaccessible?

Steps to reproduce

  1. Create a workflow publish transition
  2. Create a user role which is not allowed the above publish transition
  3. As a user with the above role, create content and and schedule it to publish in the future. Save the content.
  4. As from now, the newly created content is inaccessible.

Proposed resolution

Don't make content inaccessible due to an invalid scheduled transition. At most, make the scheduling of an invalid transition impossible.

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium fernly

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