hi
this is my code:
but accessRules() , not work.
plz help me.
thanks
this is my code:
class UserManageController extends Controller { public function accessRules() { $staff = Rool::model()->find('sid=:i',array(':i'=>yii::app()->session['sid'])); $p = $staff->role; return array( array('allow', 'actions'=>array('accept','delete','edit'), 'expression'=> $p.' > 1', ), array('allow', 'actions'=>array('add'), 'users'=>array('*') , ), array('deny', 'users'=>array('*'), ), ); } //..... where is my actions.... }
but accessRules() , not work.
plz help me.
thanks