mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 23:42:59 +08:00
correct code
This commit is contained in:
parent
8496f8dfc2
commit
b7ce4bdc78
|
@ -186,7 +186,7 @@ class TopicCreator
|
||||||
check_can_send_permission!(topic, group)
|
check_can_send_permission!(topic, group)
|
||||||
topic.topic_allowed_groups.build(group_id: group.id)
|
topic.topic_allowed_groups.build(group_id: group.id)
|
||||||
len += 1
|
len += 1
|
||||||
group.update_columns(:has_messages, true) unless group.has_messages
|
group.update_columns(has_messages: true) unless group.has_messages
|
||||||
end
|
end
|
||||||
|
|
||||||
rollback_with!(topic, :target_group_not_found) unless len == names.length
|
rollback_with!(topic, :target_group_not_found) unless len == names.length
|
||||||
|
|
Loading…
Reference in New Issue
Block a user