Skip to content

Commit

Permalink
Fixes yiisoft#8595: Fixed `yii\rbac\DbManager::checkAccessFromCache()…
Browse files Browse the repository at this point in the history
…` to check against auth items loaded in cache recursively
  • Loading branch information
qiangxue committed May 29, 2015
1 parent 886e99b commit 07bcc8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions framework/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion framework/rbac/DbManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected function checkAccessFromCache($user, $itemName, $params, $assignments)

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;
}
}
Expand Down

0 comments on commit 07bcc8f

Please sign in to comment.