forked from forgejo/forgejo
[GITEA] do not enforce misc scope tokens for public API endpoints
(cherry picked from commit e353d1c4b7
)
This commit is contained in:
parent
f255e50903
commit
666f43fb64
3 changed files with 13 additions and 32 deletions
|
@ -757,7 +757,6 @@ func Routes(ctx gocontext.Context) *web.Route {
|
|||
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryActivityPub))
|
||||
}
|
||||
|
||||
// Misc (requires 'misc' scope)
|
||||
m.Group("", func() {
|
||||
m.Get("/version", misc.Version)
|
||||
m.Get("/signing-key.gpg", misc.SigningKey)
|
||||
|
@ -777,7 +776,7 @@ func Routes(ctx gocontext.Context) *web.Route {
|
|||
m.Get("/attachment", settings.GetGeneralAttachmentSettings)
|
||||
m.Get("/repository", settings.GetGeneralRepoSettings)
|
||||
})
|
||||
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryMisc))
|
||||
})
|
||||
|
||||
// Notifications (requires 'notifications' scope)
|
||||
m.Group("/notifications", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue