mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 15:29:39 +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) {
|
||||
if (this.get("limitReached")) {
|
||||
if (this.get("limitReached") || !this.site.get("can_create_tag")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -82,8 +82,7 @@ export default ComboBox.extend({
|
|||
},
|
||||
|
||||
validateSelect() {
|
||||
return this.get("computedTags").length < this.get("siteSettings.max_tags_per_topic") &&
|
||||
this.site.get("can_create_tag");
|
||||
return this.get("computedTags").length < this.get("siteSettings.max_tags_per_topic");
|
||||
},
|
||||
|
||||
filterComputedContent(computedContent) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user