mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 10:33:43 +08:00
FIX: check can_create_tag on create and not on select
This commit is contained in:
parent
e3774c7bed
commit
23ef5f10e9
|
@ -63,7 +63,7 @@ export default ComboBox.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
validateCreate(term) {
|
validateCreate(term) {
|
||||||
if (this.get("limitReached")) {
|
if (this.get("limitReached") || !this.site.get("can_create_tag")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,8 +82,7 @@ export default ComboBox.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
validateSelect() {
|
validateSelect() {
|
||||||
return this.get("computedTags").length < this.get("siteSettings.max_tags_per_topic") &&
|
return this.get("computedTags").length < this.get("siteSettings.max_tags_per_topic");
|
||||||
this.site.get("can_create_tag");
|
|
||||||
},
|
},
|
||||||
|
|
||||||
filterComputedContent(computedContent) {
|
filterComputedContent(computedContent) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user