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 @@
-
+
{include tabs}
diff --git a/Web/Presenters/templates/User/Groups.xml b/Web/Presenters/templates/User/Groups.xml index 395ffe19..ee014a19 100644 --- a/Web/Presenters/templates/User/Groups.xml +++ b/Web/Presenters/templates/User/Groups.xml @@ -32,7 +32,7 @@ {/block} {block size} -
+
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()} {tr("groups_list", $thisUser->getClubCount())} @@ -90,7 +90,7 @@ {/if}
- +
@@ -101,7 +101,7 @@ {block bottom} {if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
-
+

{_open_new_group}

{_open_group_desc}
diff --git a/Web/static/css/avatar.1.css b/Web/static/css/avatar.1.css index 6103cefb..b7a6a7fa 100644 --- a/Web/static/css/avatar.1.css +++ b/Web/static/css/avatar.1.css @@ -6,7 +6,7 @@ table.User > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > a:nth-chil object-fit: cover; } -.post > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > img:nth-child(1) +.post > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > a:nth-child(1) > img:nth-child(1) { width: 50px; height: 50px; diff --git a/Web/static/css/avatar.2.css b/Web/static/css/avatar.2.css index b4328ddf..11790bce 100644 --- a/Web/static/css/avatar.2.css +++ b/Web/static/css/avatar.2.css @@ -11,7 +11,7 @@ table.User > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > a:nth-chil border-radius: 100px; } -.post > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > img:nth-child(1) +.post > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > a:nth-child(1) > img:nth-child(1) { width: 50px; height: 50px; diff --git a/Web/static/js/openvk.cls.js b/Web/static/js/openvk.cls.js index 77677191..668e8ef9 100644 --- a/Web/static/js/openvk.cls.js +++ b/Web/static/js/openvk.cls.js @@ -171,7 +171,7 @@ function repostPost(id, hash) { xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); xhr.onload = (function() { if(xhr.responseText.indexOf("wall_owner") === -1) - MessageBox(tr('error'), tr('error_repost_fail'), tr('ok'), [Function.noop]); + MessageBox(tr('error'), tr('error_repost_fail'), [tr('ok')], [Function.noop]); else { let jsonR = JSON.parse(xhr.responseText); NewNotification(tr('information_-1'), tr('shared_succ'), null, () => {window.location.href = "/wall" + jsonR.wall_owner});