FIX: Staff users can bypass tag validation rule (#9924)
This commit is contained in:
@@ -1157,6 +1157,7 @@ export default Controller.extend({
|
||||
const tagsArray = tags || [];
|
||||
if (
|
||||
this.site.can_tag_topics &&
|
||||
!this.currentUser.staff &&
|
||||
category &&
|
||||
category.minimum_required_tags > tagsArray.length
|
||||
) {
|
||||
|
||||
@@ -374,7 +374,7 @@ const Composer = RestModel.extend({
|
||||
"tags",
|
||||
"topicFirstPost",
|
||||
"minimumRequiredTags",
|
||||
"isStaffUser"
|
||||
"user.staff"
|
||||
)
|
||||
cantSubmitPost(
|
||||
loading,
|
||||
|
||||
Reference in New Issue
Block a user