mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
parent
384c0da78b
commit
2cdcb0dc4e
1 changed files with 3 additions and 2 deletions
|
@ -155,11 +155,12 @@ final class SupportPresenter extends OpenVKPresenter
|
||||||
$this->notFound();
|
$this->notFound();
|
||||||
} else {
|
} else {
|
||||||
if($ticket->getUserId() !== $this->user->id && $this->hasPermission('openvk\Web\Models\Entities\TicketReply', 'write', 0))
|
if($ticket->getUserId() !== $this->user->id && $this->hasPermission('openvk\Web\Models\Entities\TicketReply', 'write', 0))
|
||||||
$this->redirect("/support/tickets");
|
$_redirect = "/support/tickets";
|
||||||
else
|
else
|
||||||
$this->redirect("/support");
|
$_redirect = "/support?act=list";
|
||||||
|
|
||||||
$ticket->delete();
|
$ticket->delete();
|
||||||
|
$this->redirect($_redirect);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue