getUser($request), $file)) { throw new AuthorizationFailedException(); } return $this->getContentResponse( \File::findBySQL( "`metadata` LIKE :annotationref ORDER BY `name`", ['annotationref' => '%"annotations:original_file_id":"' .$file->id . '"%'] ) ); } }