Skip to content

Commit d192e61

Browse files
committed
Small fixes
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 1176d70 commit d192e61

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
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": {

notification/method/webpush.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
* Web Push notification method class
2929
* This class handles sending push messages for notifications
3030
*/
31-
3231
class webpush extends messenger_base implements extended_method_interface
3332
{
3433
/** @var config */

ucp/controller/webpush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)