mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
AdminAccountPage: Do not allow to choose a group..
Does not work currently :( refs #9609 refs #9772
This commit is contained in:
parent
ba8d05af85
commit
9858d79aaa
@ -12,6 +12,8 @@ use Icinga\Authentication\UserGroup\UserGroupBackend;
|
|||||||
use Icinga\Authentication\UserGroup\LdapUserGroupBackend;
|
use Icinga\Authentication\UserGroup\LdapUserGroupBackend;
|
||||||
use Icinga\Data\ConfigObject;
|
use Icinga\Data\ConfigObject;
|
||||||
use Icinga\Data\ResourceFactory;
|
use Icinga\Data\ResourceFactory;
|
||||||
|
use Icinga\Data\Selectable;
|
||||||
|
use Icinga\Exception\NotImplementedError;
|
||||||
use Icinga\Web\Form;
|
use Icinga\Web\Form;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -402,6 +404,11 @@ class AdminAccountPage extends Form
|
|||||||
$groupConfig = new ConfigObject($this->groupConfig);
|
$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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user