mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-06 20:16:00 -04:00
Merge pull request #2787 from cpradio/add-visible-status
Add visible/invisible status for Advanced Users
This commit is contained in:
commit
f275d93d6c
1 changed files with 4 additions and 0 deletions
|
@ -288,6 +288,10 @@ class TopicQuery
|
|||
result = result.where('topics.closed')
|
||||
when 'archived'
|
||||
result = result.where('topics.archived')
|
||||
when 'visible'
|
||||
result = result.where('topics.visible')
|
||||
when 'invisible'
|
||||
result = result.where('NOT topics.visible')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue