FEATURE: Hide Profile Text from non-staff if user is suspended
This commit is contained in:
parent
74b6fe8739
commit
eb5a5e3a53
|
@ -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")
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue