feat: Users API, ownership transfer and removal of the legacy role string
This commit is contained in:
1 parent
094df63a7f
commit
80f7037d3a
124 files changed
+4644
-824
No files matched your search
@@ -383,7 +383,7 @@ func TestAuthorsBackendCurrentUser(t *testing.T) {
|
||||
t.Run("The existing fields are unchanged", func(t *testing.T) {
|
||||
e := newAuthorEnv(t)
|
||||
body := decodeAuthorBody(t, e.as(t, authorEditorID, http.MethodGet, "/v1/auth/me", ""))
|
||||
for _, key := range []string{"id", "username", "email", "is_verified", "created_at", "updated_at", "display_name", "role"} {
|
||||
for _, key := range []string{"id", "username", "email", "is_verified", "created_at", "updated_at", "display_name", "access"} {
|
||||
if _, present := body[key]; !present {
|
||||
t.Errorf("missing %s", key)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user