Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ben Sheridan 5 posts 85 karma points
    Jul 08, 2022 @ 14:56
    Ben Sheridan
    0

    Skipping saving hooks

    I have a check to make sure that content is unique on each page that is triggered on ContentService.Saving.

    When a user updates a page that has already been saved then adds content that would fail the check and not be saved but when they can still send it to be reviewed as part of the workflow it skips the check and you can publish the page after even though you should not be able to save it.

  • Nathan Woulfe 447 posts 1665 karma points MVP 5x hq c-trib
    Jul 15, 2022 @ 11:52
    Nathan Woulfe
    100

    Hi Ben

    Would you mind raising an issue on GitHub => github.com/nathanwoulfe/plumber-2

    If I'm understanding the scenario, a user makes an edit to a page, doesn't save it, sends for publish approval. Plumber saves the node, which should be cancelled in your handler, but then Plumber doesn't respond to the cancellation and still submits for publish?

    I'd probably need to see your save handler implementation to better understand the issue.

Please Sign in or register to post replies

Write your reply to:

Draft