aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/refinery/blog/controller_helper.rb
diff options
context:
space:
mode:
authorPhilip Arndt <git@p.arndt.io>2016-05-31 15:03:10 +1200
committerPhilip Arndt <git@p.arndt.io>2016-05-31 15:03:10 +1200
commit8feff5c51669a83a167cf9727f914b2a5e4937e7 (patch)
tree3d196857048582fcb83f1b21a640c14e2508bc72 /app/helpers/refinery/blog/controller_helper.rb
parentdce7da10f8151a9e1ebc3f2cacfb80d207048313 (diff)
parentfeee12b1037904aed72d44d42d8d27841cb6cda4 (diff)
downloadrefinerycms-blog-8feff5c51669a83a167cf9727f914b2a5e4937e7.tar.gz
refinerycms-blog-8feff5c51669a83a167cf9727f914b2a5e4937e7.tar.bz2
refinerycms-blog-8feff5c51669a83a167cf9727f914b2a5e4937e7.zip
Merge pull request #458 from refinery/bugfix/specs
Bugfix/specs
Diffstat (limited to 'app/helpers/refinery/blog/controller_helper.rb')
-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