Passing article object to has_perm on article detail page