From 708ae2e608c071bdadc5c0f0b6b3c6b9f683f658 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Fri, 12 Apr 2019 15:29:25 +0200 Subject: [PATCH] SecurityExtension: fixed schema [Closes nette/di#194] --- src/Bridges/SecurityDI/SecurityExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ]); }