File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 "minishlink/web-push" : " ^7.0"
2929 },
3030 "require-dev" : {
31- "phing/phing" : " 2.4.* "
31+ "phing/phing" : " ~ 2.4"
3232 },
3333 "config" : {
3434 "allow-plugins" : {
Original file line number Diff line number Diff line change 2828* Web Push notification method class
2929* This class handles sending push messages for notifications
3030*/
31-
3231class webpush extends messenger_base implements extended_method_interface
3332{
3433 /** @var config */
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ protected function check_subscribe_requests(): void
248248 }
249249
250250 // Subscribe should only be available for logged-in "normal" users
251- if (!$ this ->request ->is_ajax () || $ this ->user ->id () == ANONYMOUS || $ this ->user ->data ['is_bot ' ]
251+ if (!$ this ->request ->is_ajax () || $ this ->user ->id () === ANONYMOUS || $ this ->user ->data ['is_bot ' ]
252252 || $ this ->user ->data ['user_type ' ] == USER_IGNORE || $ this ->user ->data ['user_type ' ] == USER_INACTIVE )
253253 {
254254 throw new http_exception (Response::HTTP_FORBIDDEN , 'NO_AUTH_OPERATION ' );
You can’t perform that action at this time.
0 commit comments