mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
URGENT: blank string in auto close time was causing stuff to blow up - non mods could not create topics
This commit is contained in:
parent
0e9c34ff12
commit
e1db744d6a
1 changed files with 1 additions and 2 deletions
|
@ -16,7 +16,7 @@ class TopicCreator
|
|||
topic_params = setup
|
||||
@topic = Topic.new(topic_params)
|
||||
|
||||
setup_auto_close_time if @opts[:auto_close_time]
|
||||
setup_auto_close_time if @opts[:auto_close_time].present?
|
||||
|
||||
process_private_message if @opts[:archetype] == Archetype.private_message
|
||||
save_topic
|
||||
|
@ -47,7 +47,6 @@ class TopicCreator
|
|||
else
|
||||
Category.where(name: @opts[:category]).first
|
||||
end
|
||||
|
||||
@guardian.ensure_can_create!(Topic,category)
|
||||
topic_params[:category_id] = category.id if category.present?
|
||||
topic_params[:meta_data] = @opts[:meta_data] if @opts[:meta_data].present?
|
||||
|
|
Loading…
Reference in a new issue