mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "FIX: Don't enqueue topics if the user can't create them"
This reverts commit 515e103db6
.
This commit is contained in:
@@ -119,14 +119,6 @@ class NewPostManager
|
||||
result.errors[:base] << I18n.t(:topic_not_found)
|
||||
return result
|
||||
end
|
||||
elsif manager.args[:category]
|
||||
category = Category.find_by_id(manager.args[:category])
|
||||
|
||||
unless manager.user.guardian.can_create_topic_on_category?(category)
|
||||
result = NewPostResult.new(:created_post, false)
|
||||
result.errors[:base] << I18n.t("js.errors.reasons.forbidden")
|
||||
return result
|
||||
end
|
||||
end
|
||||
|
||||
result = manager.enqueue('default')
|
||||
|
Reference in New Issue
Block a user