{% set active_auth_user = auth_user if (auth_user and auth_user.is_authenticated) else (current_user if (current_user and current_user.is_authenticated) else user) %} {% set current_user_id = active_auth_user.id if active_auth_user and active_auth_user.id else '' %} {% set current_user_email = active_auth_user.email if active_auth_user and active_auth_user.email else '' %} {% set current_role_name = (active_auth_user.role if active_auth_user and active_auth_user.role else 'alumno') | lower %}