FIX: Staff users can bypass tag validation rule (#9924)

This commit is contained in:
Dan Ungureanu
2020-06-02 09:11:25 +03:00
committed by GitHub
parent f9e715672b
commit ef3e3077d0
3 changed files with 60 additions and 1 deletions
@@ -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,