diff --git a/src/Controller/FilePoolAssetsController.php b/src/Controller/FilePoolAssetsController.php index 4b9d31c..68a2246 100644 --- a/src/Controller/FilePoolAssetsController.php +++ b/src/Controller/FilePoolAssetsController.php @@ -24,9 +24,11 @@ public function beforeFilter(EventInterface $event) { parent::beforeFilter($event); - $this->FormProtection->setConfig('unlockedActions', [ - 'index', 'add', 'view', 'edit', 'delete', - ]); + if ($this->components()->has('FormProtection')) { + $this->FormProtection->setConfig('unlockedActions', [ + 'index', 'add', 'view', 'edit', 'delete', + ]); + } } /**