form.has_feature() instead of form.owner.has_feature().

This commit is contained in:
fiatjaf 2018-09-23 21:15:00 +00:00
parent 82797f66b1
commit ca8503d124
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ class Form(DB.Model):
# if there's a custom email template we should use it
# otherwise check if the user wants a new or old version of the email
if self.owner and self.owner.has_feature('whitelabel') and self.template:
if self.has_feature('whitelabel') and self.template:
html, subject = self.template.render_body_and_subject(
data=data, host=self.host, keys=keys, now=now,
unconfirm_url=unconfirm)