assertPermission('director/inspect'); parent::init(); if ($this->object && $this->object->hasApiUser()) { $params['endpoint'] = $this->object->object_name; } } }