I would like to be able to allow trust level 1 users to post responses to existing topics (both posts and replies) without moderation, while new topics should go to an approval queue.
Is this doable with the current settings? If not, would this be a feature request for an upcoming version or would it be something a plugin could/should do? (For example, could this be done by a simple customization that hides the new topic button for a certain user level?)
It’s not a bad idea; we suppressed Reply as Linked Topic for TL0 users to make the topic page a bit less noisy, but that is less relevant now that Reply as Linked Topic is behind the link button on each post.
I don’t know that creating a new topic should be suppressed for TL1 users though.
and then in /lib/new_post_manager.b I added the following check to self.user_needs_approval? : (manager.args[:title].present? && user.trust_level < SiteSetting.approve_new_topics_unless_trust_level.to_i) ||
It seems to work well on my initial tests. And I think that having this as an independent setting makes sense; sites can even combine both settings (approval queue for all posts for TL0 users and approval queue of new topics for TL1 users, for example).
If this fits within the team’s plans, I would be honoured to submit a PR.
Thanks, already submitted and @zogstrip reviewed it quickly and recommended writing tests. I have not written a test before, so I am not sure if it is expected of me or someone else.
J’ai un problème sur mon instance : le forum vient de démarrer et j’ai des utilisateurs nouvellement inscrits auxquels j’ai attribué le niveau de confiance 4, mais leurs publications continuent d’atterrir dans la file d’examen des publications de l’administrateur. Je ne suis pas sûr de ce que je fais mal : dans mes paramètres, l’option « Approuver sauf si le niveau de confiance est… » est définie sur 1.