add link to mod+ topics

This commit is contained in:
r888888888
2017-01-23 12:27:27 -08:00
parent 16e7043477
commit 98b305b4db
2 changed files with 9 additions and 1 deletions

View File

@@ -71,6 +71,10 @@ class ForumTopic < ActiveRecord::Base
q = permitted
return q if params.blank?
if params[:mod_only].present?
q = q.where("min_level >= ?", MIN_LEVELS[:Moderator])
end
if params[:title_matches].present?
q = q.title_matches(params[:title_matches])
end