you could use the beforeFind in app_model and add your user_id as condition.
On Oct 24, 10:32 am, John Messingham <[EMAIL PROTECTED]> wrote: > Hi, > > I am developing a small applicaton and need to limit records displayed/ > edited/deleted to just ones owned by a logged in user. > > I have the user id set in a session and wondered if there was a way to > limit the records via the models. Each table has a field holding the > user id. > > Many Thanks > John Messinghamhttp://www.jmds.co.uk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
