swamidass
(S Joshua Swamidass)
Avril 19, 2020, 6:09
1
Existe-t-il un moyen de configurer une catégorie de sorte que :
Les utilisateurs d’un groupe spécifique puissent publier sans restriction.
Les utilisateurs qui ne font pas partie de ce groupe puissent publier, mais que tous leurs messages doivent être approuvés.
Merci.
1 « J'aime »
maiki
(maiki)
Avril 19, 2020, 8:16
2
Je ne pense pas ; ce sont des préoccupations distinctes en tant qu’options, comme vous l’avez sans doute constaté.
3 « J'aime »
pfaffman
(Jay Pfaffman)
Avril 20, 2020, 1:55
3
Je pense que la solution consiste à créer une deuxième catégorie nécessitant une modération, puis à demander au modérateur de la déplacer vers la catégorie souhaitée.
3 « J'aime »
tgxworld
(Alan Tan)
Avril 15, 2026, 8:26
4
Juste un petit mot pour vous informer que cette fonctionnalité a été intégrée dans
committed 02:41AM - 07 Apr 26 UTC
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`.
Je ferme ce sujet pour l’instant
1 « J'aime »