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: http://www.yiiframework.com/forum/index.php/topic/42735-restrict-users-to-only-editingdeleting-their-own-entries/page__p__202949

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

                                'actions'=>array('updateOwn'),

                                'users'=>array('thisUser'),

                        ),

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