Install Hound and Rubocop
A post can only be deleted by the owner
Only a post owner can edit post
an admin can edit or delete any post
Changed delete and edit logic

* An admin can delete or edit any post
* A user can edit or delete a post that he or she owns
* Created a owned_by? in Post model
Create method post to refactor
fixing commit issues