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
a69fcbca9a
commit
d1a1bfbbc5
|
@ -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]
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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: "",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue