From 9177075380099a597be6e0ccbebc3df7fb86af43 Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Wed, 22 Jan 2025 18:14:41 +0300 Subject: [PATCH] fix(docs): fix adding private document --- VKAPI/Handlers/Docs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VKAPI/Handlers/Docs.php b/VKAPI/Handlers/Docs.php index ae05bddf..9981243d 100644 --- a/VKAPI/Handlers/Docs.php +++ b/VKAPI/Handlers/Docs.php @@ -11,7 +11,7 @@ final class Docs extends VKAPIRequestHandler $this->requireUser(); $this->willExecuteWriteAction(); - $doc = (new Documents)->getDocumentById($owner_id, $doc_id); + $doc = (new Documents)->getDocumentById($owner_id, $doc_id, $access_key); if(!$doc || $doc->isDeleted()) $this->fail(1150, "Invalid document id");