diff options
author | Brice Sanchez <contact@brice-sanchez.com> | 2016-05-30 00:36:05 -0400 |
---|---|---|
committer | Brice Sanchez <contact@brice-sanchez.com> | 2016-05-30 22:17:19 -0400 |
commit | 8b0672f4a2d256b1823f0f101f2f384cfb416489 (patch) | |
tree | 8216f075893fee5416b71d7e68a294858b887cff /app | |
parent | dce7da10f8151a9e1ebc3f2cacfb80d207048313 (diff) | |
download | refinerycms-blog-8b0672f4a2d256b1823f0f101f2f384cfb416489.tar.gz refinerycms-blog-8b0672f4a2d256b1823f0f101f2f384cfb416489.tar.bz2 refinerycms-blog-8b0672f4a2d256b1823f0f101f2f384cfb416489.zip |
Fix find_blog_post controller helper
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/refinery/blog/controller_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |