From 488aad6f4e97d97fed3c5c2ef1a10364f88afbb3 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 4 Sep 2018 06:35:46 +0200 Subject: [PATCH] DirectorDb: fix overridden variable, has no effect ...at least not yet, it would have once access to Director DBs can be restricted --- library/Director/Web/Controller/Extension/DirectorDb.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Director/Web/Controller/Extension/DirectorDb.php b/library/Director/Web/Controller/Extension/DirectorDb.php index b73c3146..d733f2cc 100644 --- a/library/Director/Web/Controller/Extension/DirectorDb.php +++ b/library/Director/Web/Controller/Extension/DirectorDb.php @@ -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; }