blake
(Blake Erickson)
7. August 2020 um 20:16
15
Ich habe einen PR erstellt, um die API hier zu verbessern, sodass nun ein 422-Fehler zurückgegeben wird, wenn versucht wird, ein Thema zu taggen, ohne die entsprechenden Berechtigungen zu haben.
master ← tagging-topic-api
merged 10:14PM - 10 Aug 20 UTC
The UI prevents users from trying to create tags on topics when they
don't have… permission, but if you are trying to add tags to a topic via
the API and you don't have permission before this change it would
silently succeed in creating the topic, but it wouldn't have any tags.
Now a 422 error will be returned with an error message when trying to
create a topic with tags when tagging is disabled or you don't have
enough trust level to add tags to a topic.
Bug report: https://meta.discourse.org/t/-/70525/14
5 „Gefällt mir“