]> source.dussan.org Git - gitea.git/commit
Add missing `reqToken()` to notifications endpoints (#26914)
authorJakobDev <jakobdev@gmx.de>
Tue, 5 Sep 2023 14:43:34 +0000 (16:43 +0200)
committerGitHub <noreply@github.com>
Tue, 5 Sep 2023 14:43:34 +0000 (14:43 +0000)
commite9f50676535216b74a467fab4623daf6d0c39fce
tree35c52c4b10a5216b7ab6a5b6f8b1915a43cb4c99
parentf79f6a26aec9ff0fcc25899ecdc9d1546d640116
Add missing `reqToken()` to notifications endpoints (#26914)

They currently throw a Internal Server Error when you use them without a
token. Now they correctly return a `token is required` error.

This is no security issue. If you use this endpoints with a token that
don't have the correct permission, you get the correct error. This is
not affected by this PR.
routers/api/v1/api.go
tests/integration/api_notification_test.go