diff --git a/Web/Models/Entities/Club.php b/Web/Models/Entities/Club.php index c6528503..9d3e1d2c 100644 --- a/Web/Models/Entities/Club.php +++ b/Web/Models/Entities/Club.php @@ -109,6 +109,11 @@ class Club extends RowModel { return $this->getRecord()->closed; } + + function getAdministratorsListDisplay(): int + { + return $this->getRecord()->administrators_list_display; + } function getType(): int { diff --git a/Web/Presenters/GroupPresenter.php b/Web/Presenters/GroupPresenter.php index c7ca3e22..1042172d 100644 --- a/Web/Presenters/GroupPresenter.php +++ b/Web/Presenters/GroupPresenter.php @@ -150,6 +150,7 @@ final class GroupPresenter extends OpenVKPresenter $club->setAbout(empty($this->postParam("about")) ? NULL : $this->postParam("about")); $club->setShortcode(empty($this->postParam("shortcode")) ? NULL : $this->postParam("shortcode")); $club->setWall(empty($this->postParam("wall")) ? 0 : 1); + $club->setAdministrators_List_Display(empty($this->postParam("administrators_list_display")) ? 0 : $this->postParam("administrators_list_display")); if($_FILES["ava"]["error"] === UPLOAD_ERR_OK) { $photo = new Photo; diff --git a/Web/Presenters/templates/Group/Edit.xml b/Web/Presenters/templates/Group/Edit.xml index d82a0834..aaaeefee 100644 --- a/Web/Presenters/templates/Group/Edit.xml +++ b/Web/Presenters/templates/Group/Edit.xml @@ -69,6 +69,16 @@ canPost()}checked{/if}/> {_group_allow_post_for_everyone} +