mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
correct information leak in page not found
This commit is contained in:
@@ -96,7 +96,7 @@ class Topic < ActiveRecord::Base
|
||||
|
||||
scope :created_since, lambda { |time_ago| where('created_at > ?', time_ago) }
|
||||
|
||||
scope :secured, lambda {|guardian|
|
||||
scope :secured, lambda {|guardian=nil|
|
||||
ids = guardian.secure_category_ids if guardian
|
||||
|
||||
# Query conditions
|
||||
|
||||
Reference in New Issue
Block a user