Skip to content

Commit 738d13f

Browse files
committed
Remove load_notifications config check
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 1c0f25c commit 738d13f

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

event/listener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ protected function add_error($event, $error_key, $param = null)
247247
*/
248248
protected function can_use_notifications()
249249
{
250-
return $this->config['load_notifications']
251-
&& $this->config['allow_board_notifications']
250+
return $this->config['allow_board_notifications']
252251
&& $this->config['wpn_webpush_enable']
253252
&& $this->user->id() !== ANONYMOUS
254253
&& (int) $this->user->data['user_type'] !== USER_IGNORE;

tests/event/listener_test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ protected function setUp(): void
8282
});
8383

8484
$this->config = new \phpbb\config\config([
85-
'load_notifications' => true,
8685
'allow_board_notifications' => true,
8786
'wpn_webpush_enable' => true,
8887
]);

0 commit comments

Comments
 (0)