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,12 +77,16 @@ class ObjectTabs extends Tabs
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($auth->hasPermission('director/showconfig')) {
|
if ($auth->hasPermission('director/showconfig')) {
|
||||||
|
if ($object->getShortTableName() !== 'service'
|
||||||
|
|| $object->get('service_set_id') === null
|
||||||
|
) {
|
||||||
$this->add('render', array(
|
$this->add('render', array(
|
||||||
'url' => sprintf('director/%s/render', $type),
|
'url' => sprintf('director/%s/render', $type),
|
||||||
'urlParams' => $params,
|
'urlParams' => $params,
|
||||||
'label' => $this->translate('Preview'),
|
'label' => $this->translate('Preview'),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($auth->hasPermission('director/audit')) {
|
if ($auth->hasPermission('director/audit')) {
|
||||||
$this->add('history', array(
|
$this->add('history', array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user