#5926: ACL model and fullTableName
------------------------------------------+---------------------------------
    Reporter:  nescha                     |         Owner:              
        Type:  Bug                        |        Status:  closed      
    Priority:  High                       |     Milestone:  1.2.x.x     
   Component:  ACL (Access Control List)  |       Version:  RC4         
    Severity:  Major                      |    Resolution:  needmoreinfo
    Keywords:  fullTableName              |   Php_version:  PHP 5       
Cake_version:                             |  
------------------------------------------+---------------------------------
Comment (by nescha):

 Change '''ACL''' table names by adding custom prefix ("000_"): "000_aros",
 "000_acos", "000_aros_acos"

 Add constructor to '''app_model.php''':

 {{{
 function __construct($id = false, $table = null, $ds = null) {
         parent::__construct($id, $table, $ds);

         if (in_array($this->name, array('Aro', 'Aco', 'Permission'))) {
                 $this->tablePrefix = '000_';
         }
 }
 }}}

 Try to use this ACL system.

 There will be some JOIN with "Aro0"/"Aco0" which points to default tables
 because of:

 
https://trac.cakephp.org/browser/tags/1.2.0.7962/cake/libs/model/db_acl.php#L178

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5926#comment:4>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to