Hello all,

I had trouble in getting the DbAcl's check function to work 
(http://api.cakephp.org/class/acl-component#method-AclComponentcheck). 
Looking at the source code, the constructed query looks like this (lines 297 
and so on): 

            $perms = $this->Aro->Permission->find('all', array(
                'conditions' => array(
                    "{$permAlias}.aro_id" => 
$aroPath[$i][$this->Aro->alias]['id'],
                    "{$permAlias}.aco_id" => $acoIDs
                ),
                'order' => array($this->Aco->alias . '.lft' => 'desc'),
                'recursive' => 0
            ));

The translated query is as follows (example values):

SELECT Permission.id, Permission.aro_id, Permission.aco_id, Permission.crt, 
Permission.rd, Permission.updt, Permission.dlt FROM 
EXPASYADMIN.test_aros_acos Permission   
WHERE Permission.aro_id = 1 AND Permission.aco_id = (1)   ORDER BY Aco.lft 
desc;

Naturally, the order by statement seems a bit weird where it is. Is there 
something I am missing by any chance here?

Cheers,
ojonam

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to