app/library/Acl.php: in fromConfig() fix so that zones can be both strings and arrays.
This commit is contained in:
parent
2cb7ad2da8
commit
4e059b3c54
1 changed files with 2 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue