diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5e86be7e..18473fbf 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -3079,7 +3079,7 @@ module ApplicationHelper elsif @syllabus title << (@syllabus.title.nil? ? "课堂" : @syllabus.title) else - title << (User.current.id == 2 ? "Educoder实践教学" : User.current.show_name) + title << (User.current.anonymous? ? "Educoder实践教学" : User.current.show_name) end # if first_page.nil? || first_page.web_title.nil? # title << Setting.app_title unless Setting.app_title == title.last