diff --git a/src/Bridges/SecurityDI/SecurityExtension.php b/src/Bridges/SecurityDI/SecurityExtension.php index 68ab3dbe..bb485da6 100644 --- a/src/Bridges/SecurityDI/SecurityExtension.php +++ b/src/Bridges/SecurityDI/SecurityExtension.php @@ -41,8 +41,8 @@ public function getConfigSchema(): Nette\Schema\Schema ])->castTo('array') ) ), - 'roles' => Expect::arrayOf('string'), // role => parent(s) - 'resources' => Expect::arrayOf('string'), // resource => parent + 'roles' => Expect::arrayOf('string|array|null'), // role => parent(s) + 'resources' => Expect::arrayOf('string|null'), // resource => parent ]); }