Skip to content

Before changing status check if newer revision exists #7

@annda

Description

@annda

It is currently possible to approve or publish a revision other than the one being viewed. For example: two users view a page at the same time. One of them edits the page and so creates a new revision. The other approves the page without making changes. But the status is always updated on the latest revision - in this case the newer one with edited content which the approver has not seen.

To avoid this a check should be performed before changing status. If there is a newer revision than the one being currently viewed, the action should be prevented and a message shown to the user (something like "You cannot approve/publish this revision because a newer version exists + link").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions