[icinga-checkins] icinga.org: icingaweb2/master: Security: Our Config object no longer supports __set, __get and so on

git at icinga.org git at icinga.org
Wed Nov 19 16:31:57 CET 2014


Module: icingaweb2
Branch: master
Commit: 0c219655e08bbe59c1b79f1d273173c172f12fbf
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=0c219655e08bbe59c1b79f1d273173c172f12fbf

Author: Eric Lippmann <eric.lippmann at netways.de>
Date:   Wed Nov 19 14:44:53 2014 +0100

Security: Our Config object no longer supports __set, __get and so on

refs #5647

---

 application/forms/Security/RoleForm.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/forms/Security/RoleForm.php b/application/forms/Security/RoleForm.php
index 5861fa6..f81cc9f 100644
--- a/application/forms/Security/RoleForm.php
+++ b/application/forms/Security/RoleForm.php
@@ -113,7 +113,7 @@ class RoleForm extends ConfigForm
                 $name
             ));
         }
-        $role = $this->config->{$name}->toArray();
+        $role = $this->config->getSection($name)->toArray();
         $role['permissions'] = ! empty($role['permissions'])
             ? String::trimSplit($role['permissions'])
             : null;



More information about the icinga-checkins mailing list