mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
allow all users to retrieve org and quota data.
This commit is contained in:
@@ -91,9 +91,14 @@ func Register(r *macaron.Macaron) {
|
|||||||
r.Put("/:id", bind(m.UpdateUserCommand{}), wrap(UpdateUser))
|
r.Put("/:id", bind(m.UpdateUserCommand{}), wrap(UpdateUser))
|
||||||
}, reqGrafanaAdmin)
|
}, reqGrafanaAdmin)
|
||||||
|
|
||||||
// current org
|
// org information available to all users.
|
||||||
r.Group("/org", func() {
|
r.Group("/org", func() {
|
||||||
r.Get("/", wrap(GetOrgCurrent))
|
r.Get("/", wrap(GetOrgCurrent))
|
||||||
|
r.Get("/quotas", wrap(GetQuotas))
|
||||||
|
})
|
||||||
|
|
||||||
|
// current org
|
||||||
|
r.Group("/org", func() {
|
||||||
r.Put("/", bind(dtos.UpdateOrgForm{}), wrap(UpdateOrgCurrent))
|
r.Put("/", bind(dtos.UpdateOrgForm{}), wrap(UpdateOrgCurrent))
|
||||||
r.Put("/address", bind(dtos.UpdateOrgAddressForm{}), wrap(UpdateOrgAddressCurrent))
|
r.Put("/address", bind(dtos.UpdateOrgAddressForm{}), wrap(UpdateOrgAddressCurrent))
|
||||||
r.Post("/users", limitQuota(m.QUOTA_USER), bind(m.AddOrgUserCommand{}), wrap(AddOrgUserToCurrentOrg))
|
r.Post("/users", limitQuota(m.QUOTA_USER), bind(m.AddOrgUserCommand{}), wrap(AddOrgUserToCurrentOrg))
|
||||||
|
|||||||
Reference in New Issue
Block a user