Hi all,
I am writing a plugin for restricting delete access for non admins. I have registered the plugin on pre operation with delete message. But I am unable to get the record details. Please find below the code snippet
because in the Delete message the Target is an EntityReference and not an Entity.
If you need to retrieve additional details you will need to create an Image and fetch the fields from the Image, keep in mind that the pipeline step is important (Pre-Operation or Post-Operation, both sync)
@Anonymous
Is there a reason why you don't use security roles to control the delete action?
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1
mmbr1606
9
Super User 2025 Season 1