mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 01:42:26 -05:00
[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>
This commit is contained in:
parent
b6143c9ab8
commit
e8a04b7ce1
10 changed files with 160 additions and 73 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue