This commit is contained in:
Nicolas Bally 2016-09-21 22:26:54 +02:00
parent 21f206753a
commit 57cb15ce15

View File

@ -5,7 +5,10 @@ class ApplicationController < ActionController::Base
def check_enabled
if (!@current_customer and current_admin and params[:admin]) or (@current_customer and !@current_customer.account_validated?)
if (!@current_customer and current_admin and params[:admin])
elsif (@current_customer and !@current_customer.account_validated?)
redirect_to public_my_account_path
end
end