mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user