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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -