mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 07:44:05 +02:00
ObjectTabs: do not offer preview for services...
...when making part of a Set
This commit is contained in:
parent
804008673a
commit
9fa641b27c
@ -77,11 +77,15 @@ class ObjectTabs extends Tabs
|
||||
}
|
||||
|
||||
if ($auth->hasPermission('director/showconfig')) {
|
||||
$this->add('render', array(
|
||||
'url' => sprintf('director/%s/render', $type),
|
||||
'urlParams' => $params,
|
||||
'label' => $this->translate('Preview'),
|
||||
));
|
||||
if ($object->getShortTableName() !== 'service'
|
||||
|| $object->get('service_set_id') === null
|
||||
) {
|
||||
$this->add('render', array(
|
||||
'url' => sprintf('director/%s/render', $type),
|
||||
'urlParams' => $params,
|
||||
'label' => $this->translate('Preview'),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
if ($auth->hasPermission('director/audit')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user