@see Display only the user’s own posts
http://www.dereuromark.de/2011/10/05/common-cakephp-problems-and-solutions/
or what do you mean?

just make sure you include the user_id condition in all your find
queries


On 17 Okt., 20:56, MetZ <[email protected]> wrote:
> Hi.
>
> I am wondering how I can go about to limit/lock the db requests to
> ONLY allow db rows that have the user_id = session user_id ?
>
> Example: if a table row has another user_id than Session logged in id,
> then the controller will not touch this row at all.
>
> I have several controllers that I want to lock-down this way to make
> sure that no users get access to other users db values/contents.
>
> Any suggestions on how I go about doing this??
>
> Thanks all for your time! You are indeed awesome ;)
>
> -Tom

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to