You may need to see: http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html I hope Controller::isAuthorized() and Post::isOwnedBy() in the article is your purpose.
2012/1/15 J. <contact.mysparet...@gmail.com>: > But I want admins to be able to edit/delete any user too, is that > possible ? > > On 14 jan, 19:34, jeremyharris <funeralm...@gmail.com> wrote: >> If you only want users to delete themselves, why not just handle that in >> your delete method? >> >> public function delete() { >> $id = $this->Auth->user('id'); >> // etc >> >> >> >> >> >> >> >> } > > -- > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php