projects
/
mirror
/
userdir-ldap-cgi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c329a36
)
Ignore the vacation request when the user hasn't logged in
author
joey
<>
Sat, 4 Dec 2004 17:48:07 +0000
(17:48 +0000)
committer
joey
<>
Sat, 4 Dec 2004 17:48:07 +0000
(17:48 +0000)
search.cgi
patch
|
blob
|
history
diff --git
a/search.cgi
b/search.cgi
index
ffbc654
..
3151399
100755
(executable)
--- a/
search.cgi
+++ b/
search.cgi
@@
-1,6
+1,6
@@
#!/usr/bin/perl
#!/usr/bin/perl
-# $Id: search.cgi,v 1.1
1 2004/11/18 19:17:00
joey Exp $
+# $Id: search.cgi,v 1.1
2 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>
# (c) 1999 Randolph Chung. Licensed under the GPL. <tausq@debian.org>
# (c) 2004 Martin Schulze. Licensed under the GPL. <joey@debian.org>
@@
-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)";
# AND all the search terms together
$filter = "(&$filter)";