web/user: don't show managed tokens in user interface

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-05 11:11:34 +02:00
parent 19247accd9
commit 847cfed73f
3 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,7 @@ class TokenViewSet(UsedByMixin, ModelViewSet):
"description", "description",
"expires", "expires",
"expiring", "expiring",
"managed",
] ]
ordering = ["identifier", "expires"] ordering = ["identifier", "expires"]
permission_classes = [OwnerSuperuserPermissions] permission_classes = [OwnerSuperuserPermissions]

View File

@ -2318,6 +2318,10 @@ paths:
- app_password - app_password
- recovery - recovery
- verification - verification
- in: query
name: managed
schema:
type: string
- name: ordering - name: ordering
required: false required: false
in: query in: query

View File

@ -37,6 +37,7 @@ export class UserTokenList extends Table<Token> {
page: page, page: page,
pageSize: PAGE_SIZE, pageSize: PAGE_SIZE,
search: this.search || "", search: this.search || "",
managed: "",
}); });
} }