diff --git a/doc/82-Changelog.md b/doc/82-Changelog.md index 4fa1a94d..785c3d3a 100644 --- a/doc/82-Changelog.md +++ b/doc/82-Changelog.md @@ -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) diff --git a/library/Director/Web/Tabs/ObjectTabs.php b/library/Director/Web/Tabs/ObjectTabs.php index f9436236..3a346477 100644 --- a/library/Director/Web/Tabs/ObjectTabs.php +++ b/library/Director/Web/Tabs/ObjectTabs.php @@ -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()],