aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJamie Winsor <jamie@enmasse.com>2011-09-21 00:56:54 -0700
committerJamie Winsor <jamie@enmasse.com>2011-09-21 00:56:54 -0700
commit5e91670a80f3f4ed50f54d3d8fdf2709d981e9c8 (patch)
tree546558d17f3538967a8c6954a450f65bfbcb7824 /app/helpers
parentdf0664b1420f03d8cdd3f7b6960a0e542a7eb374 (diff)
downloadrefinerycms-blog-5e91670a80f3f4ed50f54d3d8fdf2709d981e9c8.tar.gz
refinerycms-blog-5e91670a80f3f4ed50f54d3d8fdf2709d981e9c8.tar.bz2
refinerycms-blog-5e91670a80f3f4ed50f54d3d8fdf2709d981e9c8.zip
Fix draft preview of blog posts
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/refinery/blog/controller_helper.rb2
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 74a189b..c1c2a6a 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 (@blog_post = Refinery::BlogPost.find(params[:id])).try(:live?)
- if refinery_user? and current_user.authorized_plugins.include?("refinerycms_blog")
+ if refinery_user? and current_refinery_user.authorized_plugins.include?("refinerycms_blog")
@blog_post = Refinery::BlogPost.find(params[:id])
else
error_404