Is it possible in Yii 1.x to hang its hook specifically for checking access rights to the controller action?
For example, we have a controller:
class MyController extends Controller { public function filters() { return array( 'accessControl', // perform access control for CRUD operations 'postOnly + delete', // we only allow deletion via POST request ); } public function accessRules() { return array( array('allow', 'roles'=>array('root', 'admin', 'manager'), ), array('allow', 'actions'=>array('send', 'list'), 'users'=>array('*'), ), array('deny', // deny all users 'users'=>array('*'), ), ); } so I need to execute my code, only for requests that require certain access rights (all actions except: send and list), while not responding to cases when such rights are not required (actions: send and list). At the same time note: I need to execute the code, before checking access rights to the action!
Is it possible and how?