From 4e059b3c545b7dbabb4f0b0e93420b1f69c6bed6 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 10 Oct 2018 00:28:26 +0200 Subject: [PATCH] app/library/Acl.php: in fromConfig() fix so that zones can be both strings and arrays. --- app/library/Acl.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/library/Acl.php b/app/library/Acl.php index b7814b7..f00ac8c 100644 --- a/app/library/Acl.php +++ b/app/library/Acl.php @@ -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'); } }