27 $user = Yii::app()->getUser();
28 $controller = $filterChain->controller;
29 $action = $filterChain->action;
32 if ($this->_allowedActions !==
'*' && in_array($action->id, $this->_allowedActions) ===
false) {
38 if (($module = $controller->getModule()) !== null) {
39 $authItem .= ucfirst($module->id).
'.';
43 $authItem .= ucfirst($controller->id);
46 if ($user->checkAccess($authItem.
'.*') !==
true) {
48 $authItem .=
'.'.ucfirst($action->id);
51 if ($user->checkAccess($authItem) !==
true) {
58 if ($allow ===
false) {
59 $controller->accessDenied();
76 if ($allowedActions ===
'*') {
77 $this->_allowedActions = $allowedActions;
79 $this->_allowedActions = preg_split(
'/[\s,]+/', $allowedActions, -1, PREG_SPLIT_NO_EMPTY);