Problem/Motivation
When editing a node, preview is not viewable if the user is going to be blocked by the new revision's editing page (after saving).
The behavior is counterintuitive... the users should be able to see preview as long as they can access editing page.
Steps to reproduce
- Install Content Moderation
- Create a workflow with moderation states "Draft" and "Published".
- Allow authenticated users to use only "Draft"->"Published" transition (which makes authenticated users unable to edit "Published" revisions.)
- Login as an authenticated user and open a node edit page whose current status is "Draft"
- Set "Published" as next moderation state
- Push "Preview" button
Proposed resolution
Check access on latest revision instead of new revision
Issue fork drupal-3201661
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
snitta commentedComment #4
snitta commentedComment #5
snitta commentedComment #6
cilefen commentedComment #11
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
Can the MR be updated for 10.1 please
Also will need a test case to show the issue.
Comment #13
acbramley commentedNeeds a reroll/rebase on to 11.x and still needs tests