If ($this->params['id']=$this->Auth->user('id')) {
    user can edit
}
else {
    redirect...
}

On Feb 19, 3:49 pm, amarradi <[email protected]> wrote:
> Thanks
>
> But how do i realize this
>
> i tried in my user edit action such condition in the first line
>
> f($this->data['User']['id']!=$this->Auth->user('id')) {
> user can edit
>
> } else
>  ... redirect
> }
>
> But it doest run
>
> many greetings
>
> Marcus Radisch
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to