diff --git a/app/controllers/forum_topics_controller.rb b/app/controllers/forum_topics_controller.rb index 96a13dbe6..1fbf4e9e6 100644 --- a/app/controllers/forum_topics_controller.rb +++ b/app/controllers/forum_topics_controller.rb @@ -33,7 +33,9 @@ class ForumTopicsController < ApplicationController @forum_posts = ForumPost.search(:topic_id => @forum_topic.id).order("forum_posts.id").paginate(params[:page]) @forum_posts.all respond_with(@forum_topic) - session[:read_forum_topics] = @forum_topic.mark_as_read(read_forum_topic_ids) + unless CurrentUser.user.is_anonymous? + session[:read_forum_topics] = @forum_topic.mark_as_read(read_forum_topic_ids) + end end def create