FIX: Flag button was visible to anon

This commit is contained in:
Robin Ward 2016-02-16 12:51:20 -05:00
parent cbd90339ca
commit 9eed95dc7b
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,7 @@ export function transformBasicPost(post) {
canDelete: post.can_delete,
canRecover: post.can_recover,
canEdit: post.can_edit,
canFlag: !Ember.isEmpty(post.flagsAvailable),
canFlag: !Ember.isEmpty(post.get('flagsAvailable')),
version: post.version,
canRecoverTopic: false,
canDeletedTopic: false,
@ -65,6 +65,7 @@ export function transformBasicPost(post) {
expandablePost: false,
replyCount: post.reply_count,
};
}