Merge pull request #42 from Kurounin/master
Allow setting permissions as children to roles
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user