mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 10:07:56 +00:00
require token for list my orgs
This commit is contained in:
parent
62edc5c59a
commit
4331d1d2a0
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
}, ReqToken())
|
||||
|
||||
// Organizations
|
||||
m.Get("/user/orgs", org.ListMyOrgs)
|
||||
m.Get("/user/orgs", ReqToken(), org.ListMyOrgs)
|
||||
m.Get("/users/:username/orgs", org.ListUserOrgs)
|
||||
m.Combo("/orgs/:orgname").Get(org.Get).Patch(bind(api.EditOrgOption{}), org.Edit)
|
||||
|
||||
|
|
Loading…
Reference in a new issue