fix permitted params

This commit is contained in:
Pete Matsyburka
2025-02-24 23:59:30 +02:00
parent cc52cae9fc
commit 4636849118
4 changed files with 4 additions and 4 deletions
@@ -39,7 +39,7 @@ class NotificationsSettingsController < ApplicationController
end
def email_config_params
params.require(:account_config).permit!.tap do |attrs|
params.require(:account_config).permit(:key, :value, { value: {} }, { value: [] }).tap do |attrs|
attrs[:key] = nil unless attrs[:key].in?([AccountConfig::BCC_EMAILS, AccountConfig::SUBMITTER_REMINDERS])
end
end