mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +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();
|
||||
} else {
|
||||
if($ticket->getUserId() !== $this->user->id && $this->hasPermission('openvk\Web\Models\Entities\TicketReply', 'write', 0))
|
||||
$this->redirect("/support/tickets");
|
||||
$_redirect = "/support/tickets";
|
||||
else
|
||||
$this->redirect("/support");
|
||||
$_redirect = "/support?act=list";
|
||||
|
||||
$ticket->delete();
|
||||
$this->redirect($_redirect);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue