mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
RedundancygroupController: Restrict customVar suggestions
- Only use fetchable relations. - Restrict to `host`, `service`, `hostgroup` and `servicegroup`
This commit is contained in:
parent
481dac43f9
commit
59126da74f
1 changed files with 1 additions and 0 deletions
|
|
@ -230,6 +230,7 @@ class RedundancygroupController extends Controller
|
|||
$suggestions = (new ObjectSuggestions())
|
||||
->setModel(DependencyNode::class)
|
||||
->setBaseFilter(Filter::equal("$column.redundancy_group.id", $this->groupId))
|
||||
->onlyWithCustomVarSources(['host', 'service', 'hostgroup', 'servicegroup'])
|
||||
->forRequest($this->getServerRequest());
|
||||
|
||||
$this->getDocument()->add($suggestions);
|
||||
|
|
|
|||
Loading…
Reference in a new issue