FIX: Incorrect attribute.

This commit is contained in:
Guo Xiang Tan 2017-03-02 12:24:57 +08:00
parent 7c3e0c6547
commit 5666190462
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
export default {
shouldRender(args, component) {
const needsButton = component.currentUser && component.currentUser.get('staff');
return needsButton && (!component.get('site.mobileView') || args.topic.get('isPrivateMessage'));
return needsButton && (!component.get('site.mobileView') || args.model.get('isPrivateMessage'));
}
};