ObjectTabs: show 'inspect' only for endpoints...

...with an ApiUser reference

fixes #1293
This commit is contained in:
Thomas Gelf 2018-05-08 16:25:38 +02:00
parent 988319dcf6
commit c514b3995b
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,7 @@ before switching to a new version.
* FEATURE: Small UI improvements like #1308
* 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: Show 'Inspect' tab only for Endpoints with an ApiUser (#1293)
### CLI
* FEATURE: Director Health Check Plugin (#1278)

View File

@ -121,7 +121,9 @@ class ObjectTabs extends Tabs
]);
}
if ($object->getShortTableName() === 'endpoint') {
if ($object->getShortTableName() === 'endpoint'
&& $object->get('apiuser_id')
) {
$this->add('inspect', [
'url' => 'director/inspect/types',
'urlParams' => ['endpoint' => $object->getObjectName()],