Yii Framework Forum: Accessrules For Logged In User (Ie 'thisuser') - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Accessrules For Logged In User (Ie 'thisuser') Rate Topic: -----

#1 User is offline   Ddd 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 24
  • Joined: 26-April 13

Posted 03 July 2013 - 10:33 AM

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.yiiframew...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!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users