aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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 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