We have a Comment entity that is used to store comments from the user. We want to limit the ability to delete a comment based on who made the comment. If you are not the person who made the comment, you won't be able to delete. We have the comment form on a parent entity to the Comment entity, where users can submit their comments and they appear in a repeating group which has the Delete capability selected. See pict.
In the Comment entity, in the Security Building Block we added a conditional expression to only allow delete if the current user = the user who made the comment (Item.CreatedBy.Properties.UserId==User.Properties.UserId). But it is not working. Does the delete checkbox on the form override the Security Building Block on the form? Please see screenshots. Is there another way to do this? Any help would be greatly appreciated.