Organization: You can now update the organization user role directly (without removing and readding the organization user). Closes #1899

This commit is contained in:
Torkel Ödegaard
2015-05-01 09:48:07 +02:00
parent b48b11e902
commit e771d8e944
9 changed files with 74 additions and 2 deletions

View File

@ -71,6 +71,7 @@ func Register(r *macaron.Macaron) {
r.Put("/", bind(m.UpdateOrgCommand{}), UpdateOrg)
r.Post("/users", bind(m.AddOrgUserCommand{}), AddOrgUser)
r.Get("/users", GetOrgUsers)
r.Patch("/users/:id", bind(m.UpdateOrgUserCommand{}), UpdateOrgUser)
r.Delete("/users/:id", RemoveOrgUser)
}, reqAccountAdmin)