FEATURE: reason to reject user signup (#11700)

Feature for `Must Approve Users` setup. When a user is rejected, a staff member can optionally set a reason for audit purposes. In addition, feedback email can be sent to the user.

Meta: https://meta.discourse.org/t/account-rejection-email/103112/8
This commit is contained in:
Krzysztof Kotlarek
2021-01-15 09:43:26 +11:00
committed by GitHub
parent add125aacf
commit 06b7c44593
18 changed files with 178 additions and 6 deletions

View File

@ -33,7 +33,7 @@ class Reviewable < ActiveRecord::Base
end
class Action < Item
attr_accessor :icon, :button_class, :label, :description, :confirm_message, :client_action
attr_accessor :icon, :button_class, :label, :description, :confirm_message, :client_action, :require_reject_reason
def initialize(id, icon = nil, button_class = nil, label = nil)
super(id)