I’m trying to make a blogging system but obviously certain users in certain groups should only be able to edit/delete their own posts/comments. How would I go about doing this in CakePHP? I followed the manual’s basic Acl guide to setup my current Auth system.
I’m trying to make a blogging system but obviously certain users in certain groups
Share
Assuming you have a Post and Comment model and the user_id is present via the $this->Auth->… object, you could define a generic method in your model:
In your controller: