Respect database restrictions for target table of collection

Keep expectation of user and integrator.
Do not include records,
if they are disabled or not available yet (e.g. starttime).

Relates: #4
This commit is contained in:
Daniel Siepmann 2021-03-15 11:24:22 +01:00
parent df14ee96a2
commit 3748b65ae5
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -167,7 +167,6 @@ class StaticRecordCollection extends AbstractRecordCollection implements Editabl
{
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
->getQueryBuilderForTable(self::getCollectionDatabaseTable());
$queryBuilder->getRestrictions()->removeAll();
$statement = $queryBuilder->select($this->getItemTableName() . '.*')
->from(self::getCollectionDatabaseTable())
->join(