From 8dbacc5ed939c42b5496148cd8205ca6defb5c18 Mon Sep 17 00:00:00 2001 From: Howl Date: Wed, 27 Apr 2016 20:25:53 +0200 Subject: [PATCH] add privilege beatmap to privileges.go --- app/v1/privileges.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/v1/privileges.go b/app/v1/privileges.go index 028ea0a..cba4cb9 100644 --- a/app/v1/privileges.go +++ b/app/v1/privileges.go @@ -18,6 +18,7 @@ type privilegesData struct { ManageAPIKeys bool `json:"manage_api_keys"` Blog bool `json:"blog"` APIMeta bool `json:"api_meta"` + Beatmap bool `json:"beatmap"` } // PrivilegesGET returns an explaination for the privileges, telling the client what they can do with this token. @@ -37,5 +38,6 @@ func PrivilegesGET(md common.MethodData) common.CodeMessager { r.ManageAPIKeys = md.User.Privileges.HasPrivilegeManageAPIKeys() r.Blog = md.User.Privileges.HasPrivilegeBlog() r.APIMeta = md.User.Privileges.HasPrivilegeAPIMeta() + r.Beatmap = md.User.Privileges.HasPrivilegeBeatmap() return r }