mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
e40c4bb7f9
Tags (and tag groups) can be configured so that they can only be used in specific categories and (optionally) restrict topics in these categories to be able to add/use only these tags. These restrictions work as expected when a topic is created without going through the review queue; however, if the topic has to be reviewed by a moderator then these restrictions currently aren't checked before the topic is sent to the review queue, but they're checked later when a moderator tries to approve the topic. This is because if a user manages to submit a topic that doesn't meet the restrictions, moderators won't be able to approve and it'll be stuck in the review queue. This PR prevents topics that don't meet the tags requirements from being sent to the review queue and shows the poster an error message that indicates which tags that cannot be used. Internal ticket: t60562. |
||
---|---|---|
.. | ||
api_keys_spec.rb | ||
auto_reject_reviewable_users_spec.rb | ||
category_tag_spec.rb | ||
content_security_policy_spec.rb | ||
email_style_spec.rb | ||
flags_spec.rb | ||
group_spec.rb | ||
invalid_request_spec.rb | ||
invite_only_registration_spec.rb | ||
message_bus_spec.rb | ||
multisite_cookies_spec.rb | ||
multisite_spec.rb | ||
rate_limiting_spec.rb | ||
same_ip_spammers_spec.rb | ||
spam_rules_spec.rb | ||
topic_auto_close_spec.rb | ||
topic_thumbnail_spec.rb | ||
watched_words_spec.rb |