searchall only available if logged in

This commit is contained in:
following
2013-07-19 13:20:39 +02:00
parent 29ec5f7d16
commit 080c764876

View File

@ -376,7 +376,14 @@
}
elseif (isset($_REQUEST['searchall']))
{
$options['searchtype'] = 'all';
if (!$login->logged_in())
{
// This operation is very expensive and therefore available only
// for logged-in users.
$tpl->error(ERROR_LOGIN_REQUIRED);
}
else
$options['searchtype'] = 'all';
}
else
{