[#69564154] added a check to change the template if the user is logged in