Skip to content

A platform for community discussion. Free, open, simple.

FIX: correctly allow tag creation if `this.site.get("can_create_tag")`

Joffrey JAFFEUX90a1b4850329
diff --git a/app/assets/javascripts/select-kit/components/tag-chooser.js.es6 b/app/assets/javascripts/select-kit/components/tag-chooser.js.es6
index c79e88bab02..0f4b1f5e860 100644
--- a/app/assets/javascripts/select-kit/components/tag-chooser.js.es6
+++ b/app/assets/javascripts/select-kit/components/tag-chooser.js.es6
@@ -18,7 +18,7 @@ export default MultiSelectComponent.extend(Tags, {
this._super();
if (this.get("allowCreate") !== false) {
- this.set("allowCreate", this.get("siteSettings.can_create_tag"));
+ this.set("allowCreate", this.site.get("can_create_tag"));
}
this.set("termMatchesForbidden", false);