11 protected $_allowedActions = array();
24 $user = Yii::app()->getUser();
25 $controller = $filterChain->controller;
26 $action = $filterChain->action;
29 if( $this->_allowedActions!==
'*' && in_array($action->id, $this->_allowedActions)===
false )
36 if( ($module = $controller->getModule())!==null )
37 $authItem .= ucfirst($module->id).
'.';
40 $authItem .= ucfirst($controller->id);
43 if( $user->checkAccess($authItem.
'.*')!==true )
46 $authItem .=
'.'.ucfirst($action->id);
49 if( $user->checkAccess($authItem)!==true )
57 $controller->accessDenied();
72 if( $allowedActions===
'*' )
73 $this->_allowedActions = $allowedActions;
75 $this->_allowedActions = preg_split(
'/[\s,]+/', $allowedActions, -1, PREG_SPLIT_NO_EMPTY);