Changed the access to the page to query (#3047)

This commit is contained in:
Erik Jan de Wit 2022-08-05 11:16:10 +02:00 committed by GitHub
parent ae5200154b
commit 93df9b98d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ export const ClientRoute: RouteDef = {
path: "/:realm/clients/:clientId/:tab",
component: lazy(() => import("../ClientDetails")),
breadcrumb: (t) => t("clients:clientSettings"),
access: "view-clients",
access: "query-clients",
};
export const toClient = (params: ClientParams): LocationDescriptorObject => ({

View file

@ -96,14 +96,14 @@ export const ClientScopes = ({
const clientScopes = await adminClient.clientScopes.find();
const find = (id: string) =>
clientScopes.find((clientScope) => id === clientScope.id)!;
clientScopes.find((clientScope) => id === clientScope.id);
const optional = optionalClientScopes.map((c) => {
const scope = find(c.id!);
const row: Row = {
...c,
type: ClientScope.optional,
description: scope.description,
description: scope?.description,
};
return row;
});
@ -113,7 +113,7 @@ export const ClientScopes = ({
const row: Row = {
...c,
type: ClientScope.default,
description: scope.description,
description: scope?.description,
};
return row;
});