AdminAccountPage: Do not allow to choose a group..

Does not work currently :(

refs 
refs 
This commit is contained in:
Johannes Meyer 2015-07-29 17:18:41 +02:00
parent ba8d05af85
commit 9858d79aaa

@ -12,6 +12,8 @@ use Icinga\Authentication\UserGroup\UserGroupBackend;
use Icinga\Authentication\UserGroup\LdapUserGroupBackend;
use Icinga\Data\ConfigObject;
use Icinga\Data\ResourceFactory;
use Icinga\Data\Selectable;
use Icinga\Exception\NotImplementedError;
use Icinga\Web\Form;
/**
@ -402,6 +404,11 @@ class AdminAccountPage extends Form
$groupConfig = new ConfigObject($this->groupConfig);
}
return UserGroupBackend::create(null, $groupConfig);
$backend = UserGroupBackend::create(null, $groupConfig);
if (! $backend instanceof Selectable) {
throw new NotImplementedError('Unsupported, until #9772 has been resolved');
}
return $backend;
}
}