diff --git a/src/ToolboxBundle/Document/Areabrick/Download/Download.php b/src/ToolboxBundle/Document/Areabrick/Download/Download.php index 624f5eed..dfd98ce7 100644 --- a/src/ToolboxBundle/Document/Areabrick/Download/Download.php +++ b/src/ToolboxBundle/Document/Areabrick/Download/Download.php @@ -67,7 +67,7 @@ protected function getByFolder(Asset\Folder $node): array if ($this->hasMembersBundle()) { $assetListing->onCreateQueryBuilder(function (\Doctrine\DBAL\Query\QueryBuilder $query) use ($assetListing) { $this->bundleConnector->getBundleService(\MembersBundle\Security\RestrictionQuery::class) - ->addRestrictionInjection($query, $assetListing, 'assets.id'); + ->addRestrictionInjection($query, $assetListing, 'id'); }); }