isPostOwner Middleware

This is how I check if the user trying to modify the post is indeed the post owner. It checks the session user id against the post's owner id.

Favorited 0 times Add to favorites!

Created by: Nelson

Edit post Delete post


Comments:

No comments yet.