mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Fix incorrect rejection invocation in Notes.getNote
This commit is contained in:
parent
c53dce2bea
commit
3a1acaeeeb
1 changed files with 3 additions and 3 deletions
|
@ -19,12 +19,12 @@ class Notes implements Handler
|
|||
{
|
||||
$note = $this->notes->get($noteId);
|
||||
if(!$note || $note->isDeleted())
|
||||
$reject("Note is gone");
|
||||
$reject(83, "Note is gone");
|
||||
|
||||
$noteOwner = $note->getOwner();
|
||||
assert($noteOwner instanceof User);
|
||||
if(!$noteOwner->getPrivacyPermission("notes.read", $this->user))
|
||||
$reject("You don't have permission to access this note");
|
||||
$reject(160, "You don't have permission to access this note");
|
||||
|
||||
$resolve([
|
||||
"title" => $note->getName(),
|
||||
|
|
Loading…
Reference in a new issue