FEATURE: Site Setting to hide suspension reason on the public profile

This commit is contained in:
Robin Ward
2017-09-12 16:06:01 -04:00
parent d7c37d9369
commit 561fa7d0cd
8 changed files with 49 additions and 4 deletions

View File

@@ -251,7 +251,7 @@ class UserSerializer < BasicUserSerializer
end
def include_suspend_reason?
object.suspended?
scope.can_see_suspension_reason?(object) && object.suspended?
end
def include_suspended_till?