X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=search.cgi;h=3151399fb1e19ed4afb1d35fc28951b1e4674175;hb=b646e8f992da057ac8d0ce21ba70da02bfb36b99;hp=ffbc6549fa4e8e572ff487e5a537242316b325e7;hpb=c329a3640a352b069e78d6bcecb793807ec5902a;p=mirror%2Fuserdir-ldap-cgi.git diff --git a/search.cgi b/search.cgi index ffbc654..3151399 100755 --- a/search.cgi +++ b/search.cgi @@ -1,6 +1,6 @@ #!/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. # (c) 2004 Martin Schulze. Licensed under the GPL. @@ -72,8 +72,8 @@ if (!$dosearch) { } } - # 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)";