Thanks for your comments Geoff,

 Before putting up the post I had also considered that this behavior
might be deliberate. For the moment I don't understand why it should
be like this but I can see situations where it potentially might cause
problems.

I have tried for several days to have the Acl functionality for Groups/
Users and Controllers/Actions as in your excellent posts in
http://lemoncake.wordpress.com but as the project I'm working on is in
its early days I have put it on hold for a while. Browsing
http://cakephp.org/files/OCPHP.pdf it seems there will be a lot more
to Acl 1.2 than the topics I've seen people discussing so far. The
other option I considered was implementing my own more basic
afterSave, afterDelete functions using the AclNode type functionality
as you suggest.

Of course if you have any other pearls of Acl 1.2 wisdom to share they
would be very welcome :)

 Adrian

On Aug 29, 3:41 pm, Geoff Ford <[EMAIL PROTECTED]> wrote:
> As AclNode actsAs Tree you can try using
>
> $this->Group->Aro->setParent()
>
> I'd like to know how you go with this.
>
> Geoff
> --http://lemoncake.wordpress.com
>
> On Aug 28, 11:19 pm, Flan <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I have been trying out Acl and adding Aros with Users and Groups along
> > the same lines as:
>
> >http://bakery.cakephp.org/articles/view/how-to-use-acl-in-1-2-xhttp:/...
>
> > It seems to work fine but then I find a problem.
>
> > I setup the Users/Groups as follows
>
> > Group1
> >         ------> User1
> >         ------> User2
> > Group2
> >        -------> User3
> >        -------> User4
>
> > where Group hasMany User and User belongsTo Group etc. I use the baked
> > scaffolded functions to add Groups and Users to the Groups as above.
> > The Aros are added to the Aro table as expected.
>
> > Next I edit User1 using the scaffolding edit function and change User1
> > from Group1 to Group2. This works ok but the Aro table is not updated
> > to reflect this change and the aro associated with User1 is still a
> > child of Group1's aro.
>
> > I have checked a little and it seems the afterSave() function in
> > acl.php is called after User1 is created but not called after User1 is
> > edited.
>
> > I was wondering if anyone has tried something similar and could
> > explain this behavior?
>
> > Thanks,
>
> > Adrian


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

Reply via email to