From 415c1bb9e1fa1b4d0621a3a31cfc0b7f4e99549d Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 10 Jun 2020 00:02:11 +0800 Subject: [PATCH] FIX: don't show create topic suggestion to users who can't Users with TL below the "min trust to create topic" setting used to see a prompt to create new topics in the footer message below the topic list. Those topics would never be submitted because those users don't meet the TL requirements to create a new topic (based on that site setting). This PR removes that prompt for those users. --- .../javascripts/discourse/app/routes/build-category-route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/routes/build-category-route.js b/app/assets/javascripts/discourse/app/routes/build-category-route.js index 58e5584fd21..aa6da5804d3 100644 --- a/app/assets/javascripts/discourse/app/routes/build-category-route.js +++ b/app/assets/javascripts/discourse/app/routes/build-category-route.js @@ -177,7 +177,7 @@ export default (filterArg, params) => { category = model.category, canCreateTopic = topics.get("can_create_topic"), canCreateTopicOnCategory = - category.get("permission") === PermissionType.FULL, + canCreateTopic && category.get("permission") === PermissionType.FULL, filter = this.filter(category); this.controllerFor("navigation/category").setProperties({