Fixes #8595: Fixed yii\rbac\DbManager::checkAccessFromCache() to check against auth items loaded in cache recursively

This commit is contained in:
Qiang Xue
2015-05-29 10:42:32 -04:00
parent 886e99be11
commit 07bcc8fda1
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ Yii Framework 2 Change Log
- Bug #8544: Fixed `yii\db\ActiveRecord` does not updates attribute specified at `optimisticLock()` after save (klimov-paul)
- Bug #8585: Fixed `yii\helpers\Html::activeTextarea()` does not allow value overriding via options (klimov-paul)
- Bug #8593: Fixed `yii\db\ActiveQuery` produces incorrect SQL for aggregations, when `sql` field is set (klimov-paul)
- Bug #8595: Fixed `yii\rbac\DbManager::checkAccessFromCache()` to check against auth items loaded in cache recursively (achretien, qiangxue)
- Bug #8606: Fixed `yii\web\Response::xSendFile()` does not reset format (vyants)
- Bug: Fixed string comparison in `BaseActiveRecord::unlink()` which may result in wrong comparison result for hash valued primary keys starting with `0e` (cebe)
- Bug: Pass correct action name to `yii\console\Controller::options()` when default action was requested (cebe)

View File

@ -158,7 +158,7 @@ class DbManager extends BaseManager
if (!empty($this->parents[$itemName])) {
foreach ($this->parents[$itemName] as $parent) {
if ($this->checkAccessRecursive($user, $parent, $params, $assignments)) {
if ($this->checkAccessFromCache($user, $parent, $params, $assignments)) {
return true;
}
}