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.
This commit is contained in:
Robin Ward
2018-04-24 13:29:15 -04:00
parent 74834dddea
commit 456e40a709
9 changed files with 160 additions and 30 deletions

View File

@@ -1,4 +1,9 @@
require_dependency 'penalty_counts_serializer'
class TrustLevel3RequirementsSerializer < ApplicationSerializer
has_one :penalty_counts, embed: :object, serializer: PenaltyCountsSerializer
attributes :time_period,
:requirements_met,
:requirements_lost,