Skip to content

Commit

Permalink
HostgroupRestriction: pass fitting table alias
Browse files Browse the repository at this point in the history
fixes #2164
fixes #2809
  • Loading branch information
Thomas-Gelf committed Oct 11, 2023
1 parent d02e430 commit 6178265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/82-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ This version hasn't been released yet
### Permissions and Restrictions
* FIX: monitoring-related permission checks have been refactored (#2712)
* FIX: Hostgroup-Filters have not been applied to Overview tables (#2775)
* FIX: error editing Hosts with hostgroup restriction in place (#2164, #2809)

### Configuration Branches
* FEATURE: with this release, directorbranches v1.3 supports a "default branch" (#2688)
Expand Down
2 changes: 1 addition & 1 deletion library/Director/Restriction/HostgroupRestriction.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function allowsHostGroup(IcingaHostGroup $hostgroup)
['id']
)->where('id = ?', $hostgroup->id);

$this->filterHostGroupsQuery($query);
$this->filterHostGroupsQuery($query, 'h');
return (int) $this->db->fetchOne($query) === (int) $hostgroup->get('id');
}

Expand Down

0 comments on commit 6178265

Please sign in to comment.