Hello,

In my application, i have a model named Privacy who define if a user
can access or not to an element.

For the moment, i've created a function in my AppController who
returns me all the conditions to retrieve only the elements that the
user can see.

I want to simplify this method. I've tried :
- Override the find function in AppModel (can't access to user_id)
- Creating a Behavior (can't access to user_id and can't modify
conditions)

I just want to modify the conditions of all models attached to this
behavior.

Thank's in advance for your help

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to