The first step you should do is to write out an example of what you
want your ARO tree to look like.  I think it will then be easier for
someone to help you out.

For example, I often have a tree that looks like the following:

Superusers
Users
--Staff
----John Kramer
----Alex Wylde
----Managers
------Ozzy
------Jimmy

What do you want your's to look like?

-Aran

On Dec 5, 9:24 am, Rob <[EMAIL PROTECTED]> wrote:
> Not sure I follow, does the usergroups table not join the users and
> groups?
>
> I have my ACL set up with the following HABTM:
>
>     // Link to jobs
>     var $hasAndBelongsToMany = array(
>         'Slot' =>
>         array(
>                 'className'             => 'Slot',
>                 'joinTable'             => 'user_slots',
>                 'foreignKey'            => 'user_id',
>                 'associationForeignKey' => 'slot_id',
>                 'conditions'            => '',
>                 'order'                 => '',
>                 'limit'                 => '',
>                 'unique'                => true,
>                 'finderQuery'           => '',
>                 'deleteQuery'           => '',
>                 'insertQuery'           => ''
>         ),
>         'Group' =>
>         array(
>                 'className'             => 'Group',
>                 'joinTable'             => 'user_groups',
>                 'foreignKey'            => 'user_id',
>                 'associationForeignKey' => 'group_id',
>                 'conditions'            => '',
>                 'order'                 => '',
>                 'limit'                 => '',
>                 'unique'                => true,
>                 'finderQuery'           => '',
>                 'deleteQuery'           => '',
>                 'insertQuery'           => ''
>         )
>     );
>
> With users HABTM groups, and slots.
>
> What is it you need to do that isn't clear from the cookbook?
>
> On Dec 5, 6:28 am, SymenTimmermans <[EMAIL PROTECTED]> wrote:
>
> > Hi guys,
>
> > I'm building an application and want to controll access levels with
> > ACL.
> > I've setup the controllers and database by following the simple ACL
> > application tutorial in the manual.
>
> > While the example in the manual uses 2 tables: 'groups' (hasmany)
> > 'users', which makes the implementation fairly straightforward, in my
> > situation, i'm using 3 tables: 'usergroups' (hasmany)
> > 'companies' (hasmany) 'users'.
>
> > Can you explain to me how to implement the authentication for this
> > situation.
> > The ACL documentation in the manual is not enough to make me
> > understand the concept.
>
> > Thanks,
>
> > Symen
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to