Browse Source

Fixed missing error page when AccessControl is used with default deny rule

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
c7d7a3ce36
  1. 6
      framework/yii/web/AccessControl.php

6
framework/yii/web/AccessControl.php

@ -119,6 +119,12 @@ class AccessControl extends ActionFilter
return false;
}
}
if (isset($this->denyCallback)) {
call_user_func($this->denyCallback, $rule);
}
else {
$this->denyAccess($user);
}
return false;
}

Loading…
Cancel
Save