diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 09364ba8ce95c36e407b83862d978aee8a2b72c1..faa4b51a6b35fad346eb7c9de96f7298098567d9 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -19,7 +19,7 @@ class PostsController < ApplicationController :xml def new - @feature_flag = FeatureFlagger.new(current_user) #I should be a global before filter so @feature_flag is accessible + @feature_flag = FeatureFlagger.new(current_user, current_user.person) #I should be a global before filter so @feature_flag is accessible redirect_to "/stream" and return unless @feature_flag.new_publisher? render :text => "", :layout => true end