web/user: don't show managed tokens in user interface
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
19247accd9
commit
847cfed73f
|
@ -82,6 +82,7 @@ class TokenViewSet(UsedByMixin, ModelViewSet):
|
|||
"description",
|
||||
"expires",
|
||||
"expiring",
|
||||
"managed",
|
||||
]
|
||||
ordering = ["identifier", "expires"]
|
||||
permission_classes = [OwnerSuperuserPermissions]
|
||||
|
|
|
@ -2318,6 +2318,10 @@ paths:
|
|||
- app_password
|
||||
- recovery
|
||||
- verification
|
||||
- in: query
|
||||
name: managed
|
||||
schema:
|
||||
type: string
|
||||
- name: ordering
|
||||
required: false
|
||||
in: query
|
||||
|
|
|
@ -37,6 +37,7 @@ export class UserTokenList extends Table<Token> {
|
|||
page: page,
|
||||
pageSize: PAGE_SIZE,
|
||||
search: this.search || "",
|
||||
managed: "",
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue