Fix new publisher if user is beta

This commit is contained in:
Benjamin Neff 2012-05-09 03:33:50 +02:00
parent c8f3bb3e9b
commit 1bc1dc4334

View file

@ -19,7 +19,7 @@ class PostsController < ApplicationController
:xml :xml
def new 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? redirect_to "/stream" and return unless @feature_flag.new_publisher?
render :text => "", :layout => true render :text => "", :layout => true
end end