DirectorDb: fix overridden variable, has no effect

...at least not yet, it would have once access to Director DBs can be restricted
This commit is contained in:
Thomas Gelf 2018-09-04 06:35:46 +02:00
parent 2075f2e54a
commit 488aad6f4e
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ trait DirectorDb
$available = $this->listAvailableDbResourceNames();
if ($resourceNames = $auth->getRestrictions('director/db_resource')) {
$names = [];
foreach ($resourceNames as $names) {
foreach ($this->splitList($names) as $name) {
foreach ($resourceNames as $rNames) {
foreach ($this->splitList($rNames) as $name) {
if (array_key_exists($name, $available)) {
$names[] = $name;
}