Skip to content
Browse files

Merge pull request #3245 from SuperTux88/fix-publisher-for-beta

Fix new publisher if user is beta
  • Loading branch information...
2 parents f053b71 + 1bc1dc4 commit be43806ef94274208f76c520a400825a3853aea3 @danielgrippi danielgrippi committed May 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/posts_controller.rb
View
2 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

0 comments on commit be43806

Please sign in to comment.
Something went wrong with that request. Please try again.