LIN student
dc974b6699
fix(message): WebPush 主动推送接口仅限超级管理员
POST /message/webpush/send 只依赖 verify_token,会把调用方提供的
title、body、url 推送给 webpush_registry 中的全部浏览器订阅,包括其他
用户和管理员的浏览器。前端只调用 /message/webpush/subscribe,不调用该
接口。
改为与同模块 /message/web 一致的 get_current_active_superuser。
API_TOKEN / apikey 由 verify_token 映射为 SUPERUSER 对应的超级管理员
账号,经过该依赖后仍可调用,已有外部集成不受影响。
/message/webpush/subscribe 保持登录用户可用,每个用户的前端都会调用它
登记自己的浏览器。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 15:42:29 +08:00
..
2026-09-15 23:57:06 +08:00
2026-08-25 17:02:29 +08:00
2026-08-31 04:57:34 +08:00
2026-09-01 09:13:56 +08:00
2026-08-25 17:02:29 +08:00
2026-10-02 14:14:09 +08:00
2026-09-01 09:13:56 +08:00
2026-09-01 09:13:56 +08:00
2026-09-01 09:13:56 +08:00
2026-09-10 10:19:16 +08:00
2026-09-21 18:30:15 +08:00
2026-09-09 13:40:35 +08:00
2026-10-05 13:01:42 +08:00
2026-08-29 14:29:42 +08:00
2026-09-14 08:27:15 +08:00
2026-09-11 23:17:36 +08:00
2026-09-24 08:23:35 +08:00
2026-09-01 09:13:56 +08:00
2026-10-05 15:42:29 +08:00
2026-09-06 10:05:40 +08:00
2026-09-11 11:36:35 +08:00
2026-09-30 14:46:48 +08:00
2026-08-31 07:45:20 +08:00
2026-10-01 14:52:26 +08:00
2026-09-23 13:12:02 +08:00
2026-09-14 07:00:31 +08:00
2026-09-05 16:05:27 +08:00
2026-09-13 21:05:04 +08:00
2026-09-12 19:05:05 -04:00
2026-09-13 16:37:27 +08:00
2026-09-01 09:13:56 +08:00
2026-09-30 23:31:55 +08:00
2026-09-06 00:48:00 +08:00
2026-09-15 13:11:29 +08:00
2026-10-04 19:01:22 +08:00
2026-09-11 11:36:35 +08:00
2026-09-05 17:23:26 +08:00
2026-09-12 20:56:05 +08:00
2026-09-28 16:59:30 +08:00
2026-10-04 16:19:58 +08:00
2026-09-01 09:13:56 +08:00
2026-08-29 21:28:18 +08:00
2026-10-02 22:10:16 +08:00
2026-09-09 13:40:35 +08:00
2026-09-01 09:13:56 +08:00
2026-08-25 17:02:29 +08:00
2026-09-13 12:53:00 +08:00