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
+5
View File
@@ -67,4 +67,9 @@ module UserGuardian
user && is_staff?
end
def can_see_suspension_reason?(user)
return true unless SiteSetting.hide_suspension_reasons?
user == @user || is_staff?
end
end