From 8b0672f4a2d256b1823f0f101f2f384cfb416489 Mon Sep 17 00:00:00 2001 From: Brice Sanchez Date: Mon, 30 May 2016 00:36:05 -0400 Subject: Fix find_blog_post controller helper --- app/helpers/refinery/blog/controller_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/helpers/refinery/blog') diff --git a/app/helpers/refinery/blog/controller_helper.rb b/app/helpers/refinery/blog/controller_helper.rb index 7235096..1c0491b 100644 --- a/app/helpers/refinery/blog/controller_helper.rb +++ b/app/helpers/refinery/blog/controller_helper.rb @@ -6,7 +6,7 @@ module Refinery def find_blog_post unless (@post = Refinery::Blog::Post.with_globalize.friendly.find(params[:id])).try(:live?) - if refinery_user? and current_refinery_user.authorized_plugins.include?("refinerycms_blog") + if current_refinery_user && current_refinery_user.has_plugin?("refinerycms_blog") @post = Refinery::Blog::Post.friendly.find(params[:id]) else error_404 -- cgit v1.2.3