Archived
1
0
Fork 0

app/library/Acl.php: in fromConfig() fix so that zones can be both strings and arrays.

This commit is contained in:
Henrik Hautakoski 2018-10-10 00:28:26 +02:00
parent 2cb7ad2da8
commit 4e059b3c54
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA

View file

@ -98,7 +98,8 @@ class Acl
}
foreach($zones as $zone) {
foreach($config->zones->get($zone) as $resource) {
$resources = (array) $config->zones->get($zone);
foreach($resources as $resource) {
$this->_adapter->allow($name, $resource, 'All');
}
}