yii - CheckAccess. Agile Web Application Development with Yii1.1 -
i need checkaccess function. i'm reading book agile web application development yii1.1 , php5, , came page 212. on page i've added "create user" menu item. login user associated project (in db table project_user_role) member, , members has operateion called 'createuser'.
the problem can't see menu item should generated following code:
if (yii::app()->user->checkaccess('createuser', array('project' => $model))) { $this->menu[] = array('label' => 'add user project', 'url' => array('adduser', 'id' => $model->id)); }
thanks
also authassignment there 2 more tables , having them not full deal. got have set rbac :).
please seerole-based access control
Comments
Post a Comment