Always use ContentContainerControllerAccess (#5345)

This commit is contained in:
Lucas Bartholemy 2021-10-16 16:13:06 +02:00 committed by GitHub
parent c4ae7aa94c
commit 69d2ae7e77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,11 +132,7 @@ class ContentContainerController extends Controller
*/
public function getAccess()
{
if ($this->contentContainer) {
return new ContentContainerControllerAccess(['contentContainer' => $this->contentContainer]);
}
return parent::getAccess();
return new ContentContainerControllerAccess(['contentContainer' => $this->contentContainer]);
}
/**