Fix new publisher if user is beta
This commit is contained in:
parent
c8f3bb3e9b
commit
1bc1dc4334
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue