Browse Source

Merge branch 'develop'

master
Guillaume Bourgeois 4 months ago
parent
commit
d43cd4916e
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      domain/User/User/NewsletterManager.php

+ 5
- 1
domain/User/User/NewsletterManager.php View File

return false; return false;
} }


public function isUserSubscribedOneNewsletter(User $user): bool
public function isUserSubscribedOneNewsletter(User $user = null): bool
{ {
if(!$user) {
return false;
}

return $this->isUserSubscribedNewsletter($user, Email::TYPE_NEWSLETTER) return $this->isUserSubscribedNewsletter($user, Email::TYPE_NEWSLETTER)
|| $this->isUserSubscribedNewsletter($user, Email::TYPE_ORDER_TAKING); || $this->isUserSubscribedNewsletter($user, Email::TYPE_ORDER_TAKING);
} }

Loading…
Cancel
Save