mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 05:41:39 +08:00
FEATURE: Live update edits
This commit is contained in:
@ -701,6 +701,12 @@ class Topic < ActiveRecord::Base
|
||||
@acting_user = u
|
||||
end
|
||||
|
||||
def secure_group_ids
|
||||
@secure_group_ids ||= if self.category && self.category.read_restricted?
|
||||
self.category.secure_group_ids
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def update_category_topic_count_by(num)
|
||||
|
Reference in New Issue
Block a user