Version 5.0.14
This commit is contained in:
1 parent
5efe744c5f
commit
dbd774b30c
364 files changed
+7048
-1377
No files matched your search
@@ -122,18 +122,15 @@ class Records extends SearchContentAbstract
|
||||
*/
|
||||
public function searchIndexPermissions(): string
|
||||
{
|
||||
if( $this->object instanceof BaseRecords )
|
||||
{
|
||||
/* We don't want to index items in databases with search disabled */
|
||||
if( !$this->object::database()->search )
|
||||
{
|
||||
return '';
|
||||
}
|
||||
$record = ( $this->object instanceof BaseComment ) ? $this->object->item() : $this->object;
|
||||
|
||||
return $this->object->deleteLogPermissions();
|
||||
/* We don't want to index items in databases with search disabled */
|
||||
if( !$record::database()->search )
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
return parent::searchIndexPermissions();
|
||||
return $record->deleteLogPermissions();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user