Accessrules For Logged In User (Ie 'thisuser')

There’s one feature I’d love to see in Yii and that’s the ability to restrict a logged in user to only editing their own content.

Even though it’s a very commonly used feature in websites the process to do this is confusing and takes a lot of time. Ways to implement this feature are discussed here:

A feature to automate/simplify this would be fantastic and would allow me to develop Yii projects at a much faster pace!

Example code of how I’d like to see it work:


//Allow logged in user to only update their own content

 array('allow', // allow specific user to perform 'update' actions




If any Yii developer into this looking into this, or if there’s a plugin or simple way to integrate this let me know!