mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
Firewall: Aliases - exclude external aliass for nesting as these will be empty according to our administration.
This commit is contained in:
parent
d1dbeb3d5e
commit
eac975d7df
@ -109,10 +109,11 @@ class AliasController extends ApiMutableModelControllerBase
|
||||
$response = $this->getBase("alias", "aliases.alias", $uuid);
|
||||
$selected_aliases = array_keys($response['alias']['content']);
|
||||
foreach ($this->getModel()->aliasIterator() as $alias) {
|
||||
if (!in_array($alias['name'], $selected_aliases)) {
|
||||
$response['alias']['content'][$alias['name']] = array(
|
||||
// external aliases can't be nested (always empty according to our administration)
|
||||
if (!in_array($alias['name'], $selected_aliases) && $alias['type'] != "external") {
|
||||
$response['alias']['content'][$alias['name']] = [
|
||||
"selected" => 0, "value" => $alias['name']
|
||||
);
|
||||
];
|
||||
}
|
||||
}
|
||||
return $response;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user