On Fri, Sep 25, 2009 at 2:25 AM, rOger <[email protected]> wrote: > > Thanks for your answers!! > > @brian: It looks rather complex to accomplish such a "easy" task so I > think there must be an easier way to get the same result...
Yeah, sure it's complex. As I pointed out, though, the example I posted goes a little further than what you're looking for. But I wanted to post it in full so you'd see the context. The nutshell version is to query the ACO table using inner joins on both aros & aros_acos. The record ID you're checking access to corresponds to Aro.foreign_key. I have no idea if this is THE way to do it, as I couldn't find anything much about record-level ACL and Cake. This is what I figured out on my own and it seems to work great (at least, for my app). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
