getUser($request), $structural_element)) { throw new AuthorizationFailedException(); } $resources = StructuralElementComment::findBySql('structural_element_id = ?', [$structural_element->id]); return $this->getContentResponse($resources); } }