[ticket/17445] Don't require email templates presence for webpush notifications

PHPBB-17445
This commit is contained in:
rxu 2024-11-28 13:05:01 +07:00
parent eab57f481b
commit 91f82f386f
No known key found for this signature in database
GPG key ID: 8117904FEDEFDD17

View file

@ -93,7 +93,7 @@ class webpush extends messenger_base implements extended_method_interface
*/
public function is_available(type_interface $notification_type = null): bool
{
return parent::is_available($notification_type) && $this->config['webpush_enable']
return $this->config['webpush_enable']
&& !empty($this->config['webpush_vapid_public']) && !empty($this->config['webpush_vapid_private']);
}