Add option to discard all tokens on publish

Created on 24 January 2023, almost 2 years ago
Updated 14 June 2023, over 1 year ago

Problem/Motivation

When you create an access token for a draft, that token is still accessible if the page revision is published then put into draft mode afterwards.

There should be an option to discard all active access tokens once a revision is published. This could be appropriate for a global setting as well as a per page setting.

Steps to reproduce

1. Create a new node that has workflow options and can be placed into Draft or unpublished equivalent.
2. Create a new access token for that page.
3. View the link with the token to ensure it is working.
4. Publish the revision of the node.
5. Visit token link to ensure it does NOT work.
6. Create a new revision of the same node and place in Draft.
7. Visit token link. It should work and show the most recent revision.

Proposed resolution

Add either global or per-page option (or both) to discard all access tokens when the revision is published.

Remaining tasks

User interface changes

Would potentially add a checkbox/boolean field to the editing screen of a node, or the global configuration of the access_unpublished module.

API changes

Data model changes

✨ Feature request
Status

Needs review

Version

1.4

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States nessthehero

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

Comments & Activities

Production build 0.71.5 2024