فهرست منبع

Merge remote branch 'maoueh/acl_security_config_fix'

* maoueh/acl_security_config_fix:
  [Security\Acl] Fixed hardcoded table names  * Replaced hardcoded table names by acl configuration options
Fabien Potencier 14 سال پیش
والد
کامیت
d7a97f441c
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      src/Symfony/Component/Security/Acl/Dbal/AclProvider.php

+ 4 - 3
src/Symfony/Component/Security/Acl/Dbal/AclProvider.php

@@ -251,9 +251,10 @@ SELECTCLAUSE;
     {
         $sql = <<<SELECTCLAUSE
             SELECT a.ancestor_id
-            FROM acl_object_identities o
-            INNER JOIN acl_classes c ON c.id = o.class_id
-            INNER JOIN acl_object_identity_ancestors a ON a.object_identity_id = o.id
+            FROM
+                {$this->options['oid_table_name']} o
+            INNER JOIN {$this->options['class_table_name']} c ON c.id = o.class_id
+            INNER JOIN {$this->options['oid_ancestors_table_name']} a ON a.object_identity_id = o.id
                WHERE (
 SELECTCLAUSE;