How to Perform Ownership Checks for Comments and Posts While Adhering to SOLID Principles and Avoiding Code Duplication?
In the PostController, I added an isOwner method to check if the user performing the update is the owner of the post. To implement this check, I created a existsByUuidAndUserEmail repository method in the BaseRepository