Added can_edit and can_view methods to the Article model.
Implemented slightly more readable method for protecting unpublished articles.