summaryrefslogtreecommitdiff
path: root/internal/api/model/admin.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-02-20 17:00:44 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-20 17:00:44 +0100
commite8a04b7ce1fdb31febca7894229247207369bc85 (patch)
tree6650cc05351f39dc25b32d07858e93f5d17561f0 /internal/api/model/admin.go
parent[feature] About page (#1495) (diff)
downloadgotosocial-e8a04b7ce1fdb31febca7894229247207369bc85.tar.xz
[bugfix] Fix account roles (#1542)
* Change account role from string to object * Update tests * small fixes + swagger docs --------- Co-authored-by: zowhoey <11893985+zowhoey@users.noreply.github.com>
Diffstat (limited to 'internal/api/model/admin.go')
-rw-r--r--internal/api/model/admin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/model/admin.go b/internal/api/model/admin.go
index df688694d..cc5503770 100644
--- a/internal/api/model/admin.go
+++ b/internal/api/model/admin.go
@@ -56,7 +56,7 @@ type AdminAccountInfo struct {
// example: Pleaaaaaaaaaaaaaaase!!
InviteRequest *string `json:"invite_request"`
// The current role of the account.
- Role string `json:"role"`
+ Role AccountRole `json:"role"`
// Whether the account has confirmed their email address.
Confirmed bool `json:"confirmed"`
// Whether the account is currently approved.