diff options
author | Jamie Winsor <jamie@enmasse.com> | 2011-09-21 00:56:54 -0700 |
---|---|---|
committer | Jamie Winsor <jamie@enmasse.com> | 2011-09-21 00:56:54 -0700 |
commit | 5e91670a80f3f4ed50f54d3d8fdf2709d981e9c8 (patch) | |
tree | 546558d17f3538967a8c6954a450f65bfbcb7824 /app | |
parent | df0664b1420f03d8cdd3f7b6960a0e542a7eb374 (diff) | |
download | refinerycms-blog-5e91670a80f3f4ed50f54d3d8fdf2709d981e9c8.tar.gz refinerycms-blog-5e91670a80f3f4ed50f54d3d8fdf2709d981e9c8.tar.bz2 refinerycms-blog-5e91670a80f3f4ed50f54d3d8fdf2709d981e9c8.zip |
Fix draft preview of blog posts
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/refinery/blog/controller_helper.rb | 2 | ||||
-rw-r--r-- | app/views/refinery/blog/posts/_post.html.erb | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/app/views/refinery/blog/posts/_post.html.erb b/app/views/refinery/blog/posts/_post.html.erb index 08587aa..f86f63a 100644 --- a/app/views/refinery/blog/posts/_post.html.erb +++ b/app/views/refinery/blog/posts/_post.html.erb @@ -27,5 +27,5 @@ <span class="st_sharethis" displayText="ShareThis"></span> <% end %> </article> -<%= render :partial => '/shared/draft_page_message' unless @blog_post.nil? or @blog_post.live? -%> +<%= render :partial => '/refinery/draft_page_message' unless @blog_post.nil? or @blog_post.live? -%> <%= render 'nav' if next_or_previous?(@blog_post) %> |