diff --git a/Web/Presenters/SearchPresenter.php b/Web/Presenters/SearchPresenter.php index 6af05712..0fc4611f 100644 --- a/Web/Presenters/SearchPresenter.php +++ b/Web/Presenters/SearchPresenter.php @@ -25,6 +25,10 @@ final class SearchPresenter extends OpenVKPresenter $type = $this->queryParam("type") ?? "users"; $page = (int) ($this->queryParam("p") ?? 1); + $this->willExecuteWriteAction(); + if($query != "") + $this->assertUserLoggedIn(); + // https://youtu.be/pSAWM5YuXx8 $repos = [ "groups" => "clubs", "users" => "users" ];