mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:25:24 +08:00
FIX: Skip shared drafts logic if disabled (#11918)
It always showed shared drafts if no category was set. Follow-up to dd175537f3fb5f4a62a5935f65443fc9bedb37e3.
This commit is contained in:
@ -58,7 +58,7 @@ class ListController < ApplicationController
|
||||
|
||||
list = TopicQuery.new(user, list_opts).public_send("list_#{filter}")
|
||||
|
||||
if guardian.can_see_shared_draft? && @category.present?
|
||||
if guardian.can_create_shared_draft? && @category.present?
|
||||
if @category.id == SiteSetting.shared_drafts_category.to_i
|
||||
# On shared drafts, show the destination category
|
||||
list.topics.each do |t|
|
||||
|
Reference in New Issue
Block a user