|
|
@ -179,7 +179,7 @@ class ApplicationController < ActionController::Base
|
|
|
|
def check_auth
|
|
|
|
def check_auth
|
|
|
|
if User.current.logged?
|
|
|
|
if User.current.logged?
|
|
|
|
if !current_user.profile_completed?
|
|
|
|
if !current_user.profile_completed?
|
|
|
|
info_url = '/account/user_info'
|
|
|
|
info_url = '/account/profile'
|
|
|
|
tip_exception(402, info_url)
|
|
|
|
tip_exception(402, info_url)
|
|
|
|
elsif current_user.certification != 1
|
|
|
|
elsif current_user.certification != 1
|
|
|
|
day_cer = UserDayCertification.where(user_id: current_user.id).last
|
|
|
|
day_cer = UserDayCertification.where(user_id: current_user.id).last
|
|
|
|