suite
This commit is contained in:
parent
21f206753a
commit
57cb15ce15
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user