OnBeforeConfirmDelete

Smartsite 7.7 - ...

OnBeforeConfirmDelete is called after the user has clicked the delete button but before the confirmation dialog is shown.
Within this method, you can check whether or not the the user is allowed to delete the selected records. If not, just return a string with an (error) message.

This string will be shown as ephemeral message and the delete operation will be cancelled.
When null or an empty string is returned, the confirmation dialog will be presented to the user.