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:
parent
3094459cd9
commit
415c1bb9e1
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue