mirror of
https://github.com/openvk/openvk
synced 2025-02-04 05:49:33 +03:00
fix(docs): fix adding private document
This commit is contained in:
parent
dbf91e2671
commit
9177075380
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ final class Docs extends VKAPIRequestHandler
|
||||||
$this->requireUser();
|
$this->requireUser();
|
||||||
$this->willExecuteWriteAction();
|
$this->willExecuteWriteAction();
|
||||||
|
|
||||||
$doc = (new Documents)->getDocumentById($owner_id, $doc_id);
|
$doc = (new Documents)->getDocumentById($owner_id, $doc_id, $access_key);
|
||||||
if(!$doc || $doc->isDeleted())
|
if(!$doc || $doc->isDeleted())
|
||||||
$this->fail(1150, "Invalid document id");
|
$this->fail(1150, "Invalid document id");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue