Fix a bug that allowed anyone to use the search functions.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>