|
|
|
@ -284,14 +284,14 @@ class EcloudController < ApplicationController
|
|
|
|
|
self.logged_user = user
|
|
|
|
|
|
|
|
|
|
user = UserExtensions.where(:user_id => User.current.id).first
|
|
|
|
|
if user.gender.nil? || user.school_id.nil? || User.current.lastname.nil?
|
|
|
|
|
redirect_to my_account_path
|
|
|
|
|
elsif user.identity == 3 && user.school_id.nil?
|
|
|
|
|
redirect_to my_account_path
|
|
|
|
|
else
|
|
|
|
|
redirect_to User.current
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# if user.gender.nil? || user.school_id.nil? || User.current.lastname.nil?
|
|
|
|
|
# redirect_to my_account_path
|
|
|
|
|
# elsif user.identity == 3 && user.school_id.nil?
|
|
|
|
|
# redirect_to my_account_path
|
|
|
|
|
# else
|
|
|
|
|
# redirect_to User.current
|
|
|
|
|
# end
|
|
|
|
|
redirect_to User.current
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|