fix email check for child sites

This commit is contained in:
Kyle Drake 2024-08-07 11:38:31 -05:00
parent c12db50b27
commit 18102eb76b

View file

@ -926,7 +926,7 @@ class Site < Sequel::Model
raise ArgumentError, "argument missing: #{a}" if args[a].nil?
end
if email && can_email?(args[:col])
if owner.email && can_email?(args[:col])
EmailWorker.perform_async({
from: FROM_EMAIL,
to: owner.email,