correct information leak in page not found

This commit is contained in:
Sam
2013-06-13 10:27:17 +10:00
parent c47239b536
commit e6e81efe85
6 changed files with 22 additions and 10 deletions

View File

@ -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