diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a555e5..9491838 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.0.14 - Work in progress - Enh #65: Updated Romanian translation (mrbig00) - Enh #61: Updated Russian translation (faenir) +- Enh #70: Allow permission-permission parent-child relationship ## 1.0.13 - August 12, 2017 - Fix #49: Fix wrong call of method make() for set attributes (MKiselev) diff --git a/src/User/Helper/AuthHelper.php b/src/User/Helper/AuthHelper.php index 3f7bf91..651e560 100644 --- a/src/User/Helper/AuthHelper.php +++ b/src/User/Helper/AuthHelper.php @@ -99,7 +99,7 @@ class AuthHelper public function getUnassignedItems(AbstractAuthItem $model) { $excludeItems = $model->item !== null ? [$model->item->name] : []; - $type = $model->getType() == Permission::TYPE_PERMISSION ?: null; + $type = $model->getType() == Permission::TYPE_PERMISSION ? Permission::TYPE_PERMISSION : null; $items = $this->getAuthManager()->getItems($type, $excludeItems); return ArrayHelper::map(