From 4331d1d2a00896b6bc5452abd93066110156d414 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 9 Jan 2016 13:32:19 +0800 Subject: [PATCH] require token for list my orgs --- routers/api/v1/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index d5bb5aee..6fe11a07 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -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)