Only delete personally created objects

Hi all   I want the logged in user to be able to delete objects but only those who they themselves created so that they can’t delete objects from other users. I’ve tried setting the visibility of the delete button to only if the creator is the logged in user but it didn’t work or I did something wrong in the expression (Picture 1). The user role also has the right to delete objects so that can’t be it. I’m sure there is an easy way to do that but I’m stuck. Does someone know the answer?     Thanks
1 answers

i think you could  use the owner option in entity properties and on the delete button check if 


if yes delete the object if no  cancel the operation