Thomas Rabaix 14 лет назад
Родитель
Сommit
1e64a78b47
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      Form/Type/SecurityRolesType.php

+ 3 - 1
Form/Type/SecurityRolesType.php

@@ -38,7 +38,9 @@ class SecurityRolesType extends ChoiceType
                     continue;
                 }
 
-                foreach ($admin->getSecurityInformation() as $role => $acls) {
+                $securityHandler = $admin->getSecurityHandler();
+
+                foreach ($securityHandler->buildSecurityInformation($admin) as $role => $acls) {
                     $roles[$role] = $role;
                 }
             }