Merge branch 'fix/host-templates-not-usable-with-hostgroup-restriction-#2020'
This commit is contained in:
commit
b6284e7898
|
@ -57,11 +57,9 @@ class HostgroupRestriction extends ObjectRestriction
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $host->hasBeenLoadedFromDb()) {
|
if (! $host->hasBeenLoadedFromDb()) {
|
||||||
if ($host->hasModifiedGroups()) {
|
foreach ($this->listRestrictedHostgroups() as $group) {
|
||||||
foreach ($this->listRestrictedHostgroups() as $group) {
|
if ($host->hasGroup($group)) {
|
||||||
if ($host->hasGroup($group)) {
|
return true;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue