2
0

Add ability to require approval when users sign up using specific email domains (#28468)

This commit is contained in:
Claire
2024-01-04 10:07:05 +01:00
committed by GitHub
parent 195b89d336
commit dfdadb92e8
13 changed files with 84 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
# frozen_string_literal: true
class REST::Admin::EmailDomainBlockSerializer < ActiveModel::Serializer
attributes :id, :domain, :created_at, :history
attributes :id, :domain, :created_at, :history, :allow_with_approval
def id
object.id.to_s