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 a69fcbca9a
commit d1a1bfbbc5
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: "",
});
}