mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Site Setting to hide suspension reason on the public profile
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user