Skip to content

Commit 47e26ea

Browse files
committed
Fix for web push stuff loading when notifications are disabled
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 738d13f commit 47e26ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

notification/method/webpush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function get_type(): string
103103
*/
104104
public function is_available(type_interface $notification_type = null): bool
105105
{
106-
return parent::is_available($notification_type) && $this->config['wpn_webpush_enable']
106+
return parent::is_available($notification_type) && $this->config['allow_board_notifications'] && $this->config['wpn_webpush_enable']
107107
&& !empty($this->config['wpn_webpush_vapid_public']) && !empty($this->config['wpn_webpush_vapid_private']);
108108
}
109109

0 commit comments

Comments
 (0)