#!/usr/bin/perl
-# $Id: search.cgi,v 1.11 2004/11/18 19:17:00 joey Exp $
+# $Id: search.cgi,v 1.12 2004/12/04 18:48:07 joey Exp $
# (c) 1999 Randolph Chung. Licensed under the GPL. <tausq@debian.org>
# (c) 2004 Martin Schulze. Licensed under the GPL. <joey@debian.org>
}
}
- # Vacation is a special case
- $filter .= "(onvacation=*)" if ($query->param('vacation'));
+ # Vacation is a special case, support it only when user is authenticated
+ $filter .= "(onvacation=*)" if ($query->param('vacation') && $authtoken && $id);
# AND all the search terms together
$filter = "(&$filter)";