4
You're right. Currently ./search.php will not prevent anonymous users from being able to search the modules where they have the view rights.
I believe the only option to acccomplish what you want is to "hack" ./search.php
Here's a "suggestion" - although I haven't actually tried this:
replace line 92 in search.php
$groups = is_object($xoopsUser) ? $xoopsUser -> getGroups() : XOOPS_GROUP_ANONYMOUS;
with:
if (is_object($xoopsUser) {
$groups = $xoopsUser -> getGroups();
}else{
redirect_header(XOOPS_URL."/",3,_NOPERM);
exit();
}
Edited: To fix stupid coding error in example... (thanks frankblack
)