Remove "misc" scope check from public API endpoints (#26134)
Fix #26035
This commit is contained in:
parent
9ed3700ad2
commit
915cdf8f87
4 changed files with 33 additions and 63 deletions
|
@ -751,7 +751,7 @@ func Routes() *web.Route {
|
|||
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryActivityPub))
|
||||
}
|
||||
|
||||
// Misc (requires 'misc' scope)
|
||||
// Misc (public accessible)
|
||||
m.Group("", func() {
|
||||
m.Get("/version", misc.Version)
|
||||
m.Get("/signing-key.gpg", misc.SigningKey)
|
||||
|
@ -771,7 +771,7 @@ func Routes() *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