From 7aa53635fe9a88fbd2d2e21bffc3888e2b4baa85 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 27 Jan 2017 22:36:45 -0500 Subject: Add 'Organizations' page to user settings (#3587) User is now able to view full list of organizations belongs to. --- cmd/web.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index 2cbbb7c5..60fb8ef3 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -247,7 +247,12 @@ func runWeb(ctx *cli.Context) error { m.Combo("/applications").Get(user.SettingsApplications). Post(bindIgnErr(auth.NewAccessTokenForm{}), user.SettingsApplicationsPost) m.Post("/applications/delete", user.SettingsDeleteApplication) - m.Get("/organizations", user.SettingsOrganizations) + + m.Group("/organizations", func() { + m.Get("", user.SettingsOrganizations) + m.Post("/leave", user.SettingsLeaveOrganization) + }) + m.Route("/delete", "GET,POST", user.SettingsDelete) }, reqSignIn, func(ctx *context.Context) { ctx.Data["PageIsUserSettings"] = true -- cgit v1.2.3