discourse/app/serializers/penalty_counts_serializer.rb
Robin Ward 456e40a709 FIX: Don't allow a user to become TL3 if they've ever been penalized
Previously the code would only check if they were *currently* suspended
or silenced.
2018-04-24 15:15:32 -04:00

12 lines
179 B
Ruby

class PenaltyCountsSerializer < ApplicationSerializer
attributes :silenced, :suspended
def silenced
object.silenced
end
def suspended
object.suspended
end
end