0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-11 20:05:38 +02:00

Add comment

This commit is contained in:
Lunny Xiao 2026-04-05 17:26:55 -07:00
parent b6ff8e14a3
commit 75ee49c212
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -979,6 +979,8 @@ func Routes() *web.Router {
Get(reqToken(), notify.GetThread).
Patch(reqToken(), notify.ReadThread)
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryNotification), rejectPublicOnly())
// notifications API should not be used with public-only tokens, as notifications are mixed with both public and private repositories
// if a token is used with notifications API, it should be required to have the notification scope, and the token should not be public-only
// Users (requires user scope)
m.Group("/users", func() {