# Можно ли привязать требование согласования к членству в группе?

**URL:** https://meta.discourse.org/t/is-it-possible-to-tie-approvals-requirement-to-membership-in-a-group/148540
**Category:** Feature
**Created:** [19.Апрель.2020 18:09:47 UTC](https://meta.discourse.org/t/is-it-possible-to-tie-approvals-requirement-to-membership-in-a-group/148540 "2020-04-19T18:09:47Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [15.Апрель.2026 08:26:11 UTC](https://meta.discourse.org/t/is-it-possible-to-tie-approvals-requirement-to-membership-in-a-group/148540/4 "2026-04-15T08:26:11Z")

</div>

Просто хочу отметить, что эта функция была добавлена в

> <https://github.com/discourse/discourse/commit/c6db6c880c50350f94fb8d046653213d7a5bb89d>
>
> Category approval was previously a simple boolean toggle per post type (\`require…\_topic\_approval\` / \`require\_reply\_approval\`). This made it impossible to exempt specific groups from review or to require review only for certain groups.
> 
> This replaces the boolean model with a four-mode enum on \`CategorySetting\`: \`no\_one\`, \`everyone\`, \`everyone\_except\`, and \`no\_one\_except\`. The group-based modes pair with \`CategoryPostingReviewGroup\` join records to determine which groups are included or excluded. The old boolean accessors are preserved as aliases of the enum predicates for backward compatibility.
> 
> With the mode now living on \`CategorySetting\`, the per-row \`permission\` column on \`CategoryPostingReviewGroup\` is redundant since the join table only needs to track which groups are associated with a category, not what kind of permission they have. The column is made nullable and marked readonly in a pre-deploy migration, then dropped in a post-deploy migration.
> 
> On the frontend, the approval checkboxes are replaced with \`ComboBox\` dropdowns for the four modes and a conditional \`GroupChooser\` for the group-based modes, in both the legacy and simplified category editors. The simplified editor uses FormKit field-level validation to show inline errors when a group-based mode is selected without any groups. The legacy editor relies on server-side validation surfaced through \`popupAjaxError\`.

На данный момент закрываю эту тему 🙂

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-tie-approvals-requirement-to-membership-in-a-group/148540)._
