Search the Community
Showing results for tags 'authmanager'.
-
First of all thank you for an invaluable resource - its helped me alot! I am having a bit of a problem setting up the database for the authManager. I used the setup script to set up three databases: Auth Assignment, AuthItem and AuthItemChild - but when I run the setup script it appears to stop adding to the database when it gets to the task bit! Am very much a newbie, so any help as to where my code is going wrong would be greatly appreciated! Vicki public function actionSetup() { $auth=Yii::app()->authManager; // Create Operations $auth->createOperation('create
- 7 replies
-
- authmanager
- addchild
-
(and 2 more)
Tagged with:
-
How does the code below (p. 268) work? Is it definitely correct? Can someone walk me through this? In actionSetup (A): Why is updateUser a child of updateOwnUser? Doesn't that mean anyone who can update his/her OWN user info can also update anyone else's? In the controller (: Why is checkAccess (array('id' => $id)) used on updateUser instead of updateOwnUser? Does updateUser even use the ID parameter? Please help - thanks... Quite confused! Code A: # protected/controllers/SiteController.php::actionSetup() $auth = Yii::app()->authManager; // Create operations. $task = $auth-
- 1 reply
-
- authmanager
- rbac
-
(and 2 more)
Tagged with: