ObjectTabs: show 'inspect' only for endpoints...
...with an ApiUser reference fixes #1293
This commit is contained in:
parent
988319dcf6
commit
c514b3995b
|
@ -28,6 +28,7 @@ before switching to a new version.
|
||||||
* FEATURE: Small UI improvements like #1308
|
* FEATURE: Small UI improvements like #1308
|
||||||
* FIX: Don't suggest Command templates where Commands are required (#1414)
|
* FIX: Don't suggest Command templates where Commands are required (#1414)
|
||||||
* FIX: Do not allow to delete Commands being used by other objects (#1443)
|
* FIX: Do not allow to delete Commands being used by other objects (#1443)
|
||||||
|
* FIX: Show 'Inspect' tab only for Endpoints with an ApiUser (#1293)
|
||||||
|
|
||||||
### CLI
|
### CLI
|
||||||
* FEATURE: Director Health Check Plugin (#1278)
|
* FEATURE: Director Health Check Plugin (#1278)
|
||||||
|
|
|
@ -121,7 +121,9 @@ class ObjectTabs extends Tabs
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($object->getShortTableName() === 'endpoint') {
|
if ($object->getShortTableName() === 'endpoint'
|
||||||
|
&& $object->get('apiuser_id')
|
||||||
|
) {
|
||||||
$this->add('inspect', [
|
$this->add('inspect', [
|
||||||
'url' => 'director/inspect/types',
|
'url' => 'director/inspect/types',
|
||||||
'urlParams' => ['endpoint' => $object->getObjectName()],
|
'urlParams' => ['endpoint' => $object->getObjectName()],
|
||||||
|
|
Loading…
Reference in New Issue