Skip to content

Commit

Permalink
SecurityExtension: fixed schema [Closes nette/di#194]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 12, 2019
1 parent 7a1e097 commit 708ae2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bridges/SecurityDI/SecurityExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
]);
}

Expand Down

0 comments on commit 708ae2e

Please sign in to comment.