FIX: if topic did not save do not attempt to skip inbox

This commit is contained in:
Sam 2016-01-14 10:38:04 +11:00
parent 68026bdab3
commit 1a27d887fa
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ class PostCreator
end
def ensure_in_allowed_users
return unless @topic.private_message?
return unless @topic.private_message? && @topic.id
unless @topic.topic_allowed_users.where(user_id: @user.id).exists?
unless @topic.topic_allowed_groups.where('group_id IN (