fix permitted params

This commit is contained in:
Pete Matsyburka committed 2025-02-24 23:59:30 +02:00
1 parent cc52cae9fc
commit 4636849118
4 files changed
+4 -4

No files matched your search

@@ -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