11 months ago

How to check if a record belongs to a user?

Posted 11 months ago by cac

Let's say my User can make blog posts. I have now retrieved a blog post and I want check if the given blog post belongs to the authenticated user so it can be edited. I was able to accomplish that but it doesn't seem the best way to do it.

Please sign in or create an account to participate in this conversation.