FIX: current_user serializer not throwing error (#253)

This commit is contained in:
Mark VanLandingham 2021-11-18 13:33:14 -06:00 committed by GitHub
parent f56037cdf0
commit cb0a65b844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ after_initialize do
end end
add_to_serializer(:current_user, :never_auto_track_topics) do add_to_serializer(:current_user, :never_auto_track_topics) do
user.user_option.auto_track_topics_after_msecs < 0 (user.user_option.auto_track_topics_after_msecs || SiteSetting.default_other_auto_track_topics_after_msecs) < 0
end end
add_to_class(:group, :can_show_assigned_tab?) do add_to_class(:group, :can_show_assigned_tab?) do