mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "PERF: Cache categories in Site model."
This reverts commit 7dc0f88acd.
This commit is contained in:
@@ -46,11 +46,6 @@ module CategoryGuardian
|
||||
nil
|
||||
end
|
||||
|
||||
def can_see_serialized_category?(category_id:, read_restricted:)
|
||||
return true if !read_restricted
|
||||
secure_category_ids.include?(category_id)
|
||||
end
|
||||
|
||||
def can_see_category?(category)
|
||||
return false unless category
|
||||
return true if is_admin?
|
||||
|
||||
Reference in New Issue
Block a user