mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-16 07:18:09 +02:00
BetaHostgroupRestriction: fix single-host query
This commit is contained in:
parent
02a3652c86
commit
56af88ee3f
@ -18,10 +18,9 @@ class BetaHostgroupRestriction extends ObjectRestriction
|
||||
$query = $this->db->select()->from(
|
||||
array('h' => 'icinga_host'),
|
||||
array('id')
|
||||
);
|
||||
)->where('id = ?', $host->id);
|
||||
|
||||
$this->applyToHostsQuery($query);
|
||||
|
||||
return (int) $this->db->fetchOne($query) === (int) $host->get('id');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user