statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
30 stars 1 forks source link

RevisionSaving event #1028

Closed simonerd closed 8 months ago

simonerd commented 11 months ago

It would be quite useful to have a RevisionSaving event.

In a collection without revisions, I can prevent the user from saving the page via the EntrySaving event. However, if revisions are enabled, the EntrySaving event only triggers on publish. That makes it impossible to stop the user from saving a page (meaning, the working copy or revision).