This commit is contained in:
Nicolas Bally 2018-02-21 22:27:56 +01:00
parent 8897fa2588
commit a9c740f617

View File

@ -61,12 +61,16 @@ class Public::CustomersAuthsController < ApplicationController
cookies.permanent[:video_read] = "true"
flash[:read_video] = true
end
if user.reseauxes.map(&:id).include?(2)
if false
if user.reseauxes.map(&:id).include?(2)
redirect_to public_reseaux_products_path(:reseaux_id => 2)
else
redirect_to :root
end
redirect_to public_reseaux_products_path(:reseaux_id => 2)
else
redirect_to :root
redirect_to public_my_reseauxes_path
end
else