- before_filter :authenticate_user!, :only => [:top, :index, :show, :play, :create, :update, :destroy]
+ layout 'test' if MagicNumber['test_layout']
+ if MagicNumber['run_mode'] == 0
+ before_filter :authenticate_user!, :only => [:new, :create, :edit, :update, :destroy]
+ before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
+ else
+ before_filter :authenticate_user!, :only => [:top, :index, :show, :new, :create, :edit, :update, :destroy]
+ before_filter :authenticate_author, :only => [:top, :index, :show, :new, :create, :edit, :update, :destroy]
+ end