Group members: hosts only for now

This commit is contained in:
Thomas Gelf 2017-07-11 14:05:49 +02:00
parent 2691081349
commit 1e531bef1b
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ class ObjectTabs extends Tabs
));
}
if ($object->isGroup()) {
// TODO: remove table check once we resolve all group types
if ($object->isGroup() && $object->getShortTableName() === 'hostgroup') {
$this->add('membership', [
'url' => sprintf('director/%s/membership', $type),
'urlParams' => $params,