Re: what is the best way to restrict actions to different profiles from the same model User?

2008-12-18 Thread Smelly_Eddie
I think your missing the point of ACLs You should have a record of user ID's that may add new users. On Dec 17, 10:39 am, persivo_cunha wrote: > Hi, > > Im my DB, i have one table called 'user' with a field called profile, > and only the profile 'admin' can add a new user. Is wrong i put on

what is the best way to restrict actions to different profiles from the same model User?

2008-12-17 Thread persivo_cunha
Hi, Im my DB, i have one table called 'user' with a field called profile, and only the profile 'admin' can add a new user. Is wrong i put one if in the add action that execute only if the profile is 'admin'? I am using AuthComponent. Thanks. --~--~-~--~~~---~--~