Admin Quick Start Guide topic is visible only to staff in new sites
This commit is contained in:
parent
8134113b22
commit
fdcd3c20b6
|
@ -6,7 +6,8 @@ if Topic.where('id NOT IN (SELECT topic_id from categories where topic_id is not
|
|||
puts "Seeding welcome topics"
|
||||
|
||||
welcome = File.read(Rails.root + 'docs/ADMIN-QUICK-START-GUIDE.md')
|
||||
PostCreator.create(Discourse.system_user, raw: welcome, title: "Discourse Admin Quick Start Guide" ,skip_validations: true)
|
||||
post = PostCreator.create(Discourse.system_user, raw: welcome, title: "Discourse Admin Quick Start Guide", skip_validations: true)
|
||||
post.topic.update_column('visible', false)
|
||||
|
||||
welcome = File.read(Rails.root + 'docs/WELCOME-TO-DISCOURSE.md')
|
||||
post = PostCreator.create(Discourse.system_user, raw: welcome, title: "Welcome to Discourse", skip_validations: true)
|
||||
|
|
Loading…
Reference in New Issue