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.
This commit is contained in:
Joe 2020-06-10 00:02:11 +08:00
parent 3094459cd9
commit 415c1bb9e1
1 changed files with 1 additions and 1 deletions

View File

@ -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({