mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX Don't show search result items in MSSQLDatabase::searchEngine() that can't be viewed
This commit is contained in:
parent
d09acc0cbe
commit
84aed0d9c3
@ -1230,7 +1230,7 @@ class MSSQLDatabase extends SS_Database {
|
||||
|
||||
foreach($result as $row){
|
||||
$row_result=DataObject::get_by_id($row['Source'], $row['ID']);
|
||||
$searchResults->push($row_result);
|
||||
if($row_result->canView()) $searchResults->push($row_result);
|
||||
}
|
||||
|
||||
$searchResults->setPageLimits($start, $pageLength, $totalCount);
|
||||
|
Loading…
Reference in New Issue
Block a user