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",
"expires",
"expiring",
"managed",
]
ordering = ["identifier", "expires"]
permission_classes = [OwnerSuperuserPermissions]

View File

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

View File

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