FEATURE: Hide Profile Text from non-staff if user is suspended

This commit is contained in:
cpradio 2016-11-25 19:26:36 -05:00
parent 74b6fe8739
commit eb5a5e3a53
2 changed files with 8 additions and 1 deletions

View File

@ -25,6 +25,11 @@ export default Ember.Controller.extend(CanCheckEmails, {
return (!indexStream || viewingSelf) && !forceExpand;
},
@computed('model.isSuspended', 'currentUser.staff')
isNotSuspendedOrIsStaff(isSuspended, isStaff) {
return !isSuspended || isStaff;
},
linkWebsite: Em.computed.not('model.isBasic'),
@computed("model.trust_level")

View File

@ -86,7 +86,9 @@
<b>{{i18n 'user.suspended_reason'}}</b> {{model.suspend_reason}}
</div>
{{/if}}
{{{model.bio_cooked}}}
{{#if isNotSuspendedOrIsStaff}}
{{{model.bio_cooked}}}
{{/if}}
</div>
{{#if publicUserFields}}