Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Allow admins to search unsearchable users #4190

Closed
wants to merge 16 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions www/search.spt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ if query:
FROM participants
WHERE username %% %(q)s
AND claimed_time IS NOT NULL
AND is_searchable
AND NOT is_closed
"""
+("" if user.ADMIN else " AND is_searchable")
+""" AND NOT is_closed
ORDER BY rank DESC, username
LIMIT 10
""", locals())
Expand Down