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:
parent
2075f2e54a
commit
488aad6f4e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue