diff --git a/CODE-OF-CONFLICT.md b/CODE_OF_CONFLICT.md similarity index 100% rename from CODE-OF-CONFLICT.md rename to CODE_OF_CONFLICT.md diff --git a/CODE-STYLE.md b/CODE_STYLE.md similarity index 100% rename from CODE-STYLE.md rename to CODE_STYLE.md diff --git a/Web/Presenters/UserPresenter.php b/Web/Presenters/UserPresenter.php index c6a41616..e2f26d59 100644 --- a/Web/Presenters/UserPresenter.php +++ b/Web/Presenters/UserPresenter.php @@ -90,6 +90,9 @@ final class UserPresenter extends OpenVKPresenter elseif (!$user->getPrivacyPermission('groups.read', $this->user->identity ?? NULL)) $this->flashFail("err", tr("forbidden"), tr("forbidden_comment")); else { + if($this->queryParam("act") === "managed" && $this->user->id !== $user->getId()) + $this->flashFail("err", tr("forbidden"), tr("forbidden_comment")); + $this->template->user = $user; $this->template->page = (int) ($this->queryParam("p") ?? 1); $this->template->admin = $this->queryParam("act") == "managed"; diff --git a/Web/Presenters/templates/@listView.xml b/Web/Presenters/templates/@listView.xml index 7d69bf00..811f8724 100644 --- a/Web/Presenters/templates/@listView.xml +++ b/Web/Presenters/templates/@listView.xml @@ -4,7 +4,7 @@