Thomas Rabaix пре 14 година
родитељ
комит
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;
                 }
             }