If have a difference in my testing for the someone user :
$this -> Acl -> Aro -> create(array('parent_id' => 2, 'alias' =>
'Someone'));
then in the check:
$this->Acl->check('Users/Someone', ...);
On Jul 13, 1:08 pm, Pillow <[EMAIL PROTECTED]> wrote:
> On 13 Lip, 11:39, francky06l <[EMAIL PROTECTED]> wrote:
>
> > Using create and save does not seem to fill up the lft / rght fields.
>
> No, lft and rght are alright (according to MPTT rules).
>
> These are my tables:
>
> acos:
>
> +----+-----------+-------+-------------+----------------+------+------
> +
> | id | parent_id | model | foreign_key | alias | lft | rght
> |
> +----+-----------+-------+-------------+----------------+------+------
> +
> | 1 | NULL | | NULL | controllers | 1 | 4
> |
> | 2 | 1 | | NULL | someController | 2 | 3
> |
> +----+-----------+-------+-------------+----------------+------+------
> +
>
> aros:
>
> +----+-----------+-------+-------------+--------------+------+------+
> | id | parent_id | model | foreign_key | alias | lft | rght |
> +----+-----------+-------+-------------+--------------+------+------+
> | 1 | NULL | | NULL | Users | 1 | 6 |
> | 2 | 1 | | NULL | Admin | 2 | 5 |
> | 3 | 2 | | NULL | User.Someone | 3 | 4 |
> +----+-----------+-------+-------------+--------------+------+------+
>
> aros_acos:
>
> +----+--------+--------+---------+-------+---------+---------+
> | id | aro_id | aco_id | _create | _read | _update | _delete |
> +----+--------+--------+---------+-------+---------+---------+
> | 1 | 1 | 1 | -1 | -1 | -1 | -1 |
> | 2 | 2 | 2 | 1 | 1 | 1 | 1 |
> +----+--------+--------+---------+-------+---------+---------+
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---