Let admins delete or edit any post

Previously: admins could not delete or edit posts that they didn't own
Problem: admins should be able to do so (especially for spam or offensive posts)
Solution: if a user is an admin, delete or update posts using Post.find instead of current_user.posts
Because the line that you removed hasn't changed. The line that you replaced it with has, though.