mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-17 07:51:12 +08:00
Fixes #8595: Fixed yii\rbac\DbManager::checkAccessFromCache()
to check against auth items loaded in cache recursively
This commit is contained in:
@ -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 #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 #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 #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 #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: 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)
|
- Bug: Pass correct action name to `yii\console\Controller::options()` when default action was requested (cebe)
|
||||||
|
@ -158,7 +158,7 @@ class DbManager extends BaseManager
|
|||||||
|
|
||||||
if (!empty($this->parents[$itemName])) {
|
if (!empty($this->parents[$itemName])) {
|
||||||
foreach ($this->parents[$itemName] as $parent) {
|
foreach ($this->parents[$itemName] as $parent) {
|
||||||
if ($this->checkAccessRecursive($user, $parent, $params, $assignments)) {
|
if ($this->checkAccessFromCache($user, $parent, $params, $assignments)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user