Merge remote-tracking branch 'origin/master'

* origin/master:
  Update CHANGELOG.md
  Update CHANGELOG.md
  Allow setting permissions as children to roles
  Allow setting permission as children to roles
This commit is contained in:
Antonio Ramirez
2017-08-06 11:53:56 +02:00
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# CHANGELOG
## 1.0.10 - Work In Progress
- Fix #42: Allow setting permissions as children to roles (kurounin)
- Fix #37: Fix bower alias in test environment (tekord)
- Enh #32: Added Italian Translation (maxxer)
- Fix #30: Prefill username and email in SettingsForm (mattheobjornson)

View File

@ -99,7 +99,8 @@ class AuthHelper
public function getUnassignedItems(AbstractAuthItem $model)
{
$excludeItems = $model->item !== null ? [$model->item->name] : [];
$items = $this->getAuthManager()->getItems($model->getType(), $excludeItems);
$type = $model->getType() == Permission::TYPE_PERMISSION ?: null;
$items = $this->getAuthManager()->getItems($type, $excludeItems);
return ArrayHelper::map(
$items,