FEATURE: no category description in category-drop for staff or TL > 0

This commit is contained in:
Joffrey JAFFEUX 2018-03-14 11:12:57 +01:00 committed by GitHub
parent d2a7a4916a
commit 3ab58ac881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
)
});
},