Merge pull request #4156 from mcwumbly/fix-custom-user-field-user-card

Fix: Custom user fields on user card could show for wrong user.
This commit is contained in:
Régis Hanol 2016-04-09 13:38:15 +02:00
commit 09aa134b01

View file

@ -27,7 +27,7 @@ export default Ember.Controller.extend({
showMoreBadges: Em.computed.gt('moreBadgesCount', 0),
showDelete: Em.computed.and("viewingAdmin", "showName", "user.canBeDeleted"),
@computed('model.user_fields.@each.value')
@computed('user.user_fields.@each.value')
publicUserFields() {
const siteUserFields = this.site.get('user_fields');
if (!Ember.isEmpty(siteUserFields)) {