RBAC and Controller Filters?

Hi,

I has using RBAC to control user access? Do I still need to use the filters function inside the controller?




	public function actionUpdate() {

		if(Yii::app()->user->checkAccess('updateRecord')) {

			....

			....

			$this->render('update',array('model'=>$model,));

		}

	}



Advice needed :)

You can safely remove ‘accessControl’ from filters if you know, that you are using checkAccess where you need. But accessRules can protect you from forgiving using of checkAccess.

Thanks! :lol: