I've tried increasing recursive in my Auth settings:

    public $components = array(
                    'Session',
                    'Auth' => array(
                            'authenticate' => array('Form' =>
array('userModel' => 'Milli', 'recursive' => 1)),
                            'authorize' => array('Tiny' =>
array('aclModel' => 'Role')),

And now _findUser() in BaseAuthenticate.php indeed starts fetching the
user deeply with its Role.

array(
        'Milli' => array(
                'password' => '*****',
                'id' => (int) 6,
                'username' => 'rihad',
                'created' => '2012-05-15 16:30:10',
                'modified' => '2012-05-18 10:14:07'
        ),
        'Role' => array(
                (int) 0 => array(
                        'id' => (int) 1,
                        'alias' => 'operations',
                        'RolesUser' => array(
                                'id' => (int) 6,
                                'role_id' => (int) 1,
                                'user_id' => (int) 6
                        )
                )
        )
)


But TinyAuth still is getting the shallow user in its authorize().

array(
        'id' => (int) 6,
        'username' => 'rihad',
        'created' => '2012-05-15 16:30:10',
        'modified' => '2012-05-18 10:14:07',
)

What's going on? The session (/tmp/sess_* files) is lacking the Role
stuff.

-- 
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