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

This commit is contained in:
Joffrey JAFFEUX 2018-03-07 16:06:56 +01:00 committed by GitHub
parent 4132c37add
commit 90a1b48503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);