Merge pull request #5 from DanielSiepmann/feature/4-respect-db-restrictions

Respect database restrictions for target table of collection
This commit is contained in:
Benni Mack 2021-03-15 12:44:50 +01:00 committed by GitHub
commit 6463d5130b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(