Create canEdit? method to post Model and used it in posts#edit