diff --git a/app/models/category_list.rb b/app/models/category_list.rb index f9ba6088284..7ae4704f388 100644 --- a/app/models/category_list.rb +++ b/app/models/category_list.rb @@ -151,7 +151,7 @@ class CategoryList @categories = query.to_a - if SiteSetting.lazy_load_categories + if @guardian.can_lazy_load_categories? categories_with_rownum = Category .secured(@guardian)