mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: no category description in category-drop for staff or TL > 0
This commit is contained in:
parent
d2a7a4916a
commit
3ab58ac881
@ -32,7 +32,10 @@ export default ComboBoxComponent.extend({
|
||||
this.get("rowComponentOptions").setProperties({
|
||||
hideParentCategory: this.get("subCategory"),
|
||||
allowUncategorized: true,
|
||||
displayCategoryDescription: true
|
||||
displayCategoryDescription: !(
|
||||
this.currentUser &&
|
||||
(this.currentUser.get("staff") || this.currentUser.trust_level > 0)
|
||||
)
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user