Changed the access to the page to query (#3047)
This commit is contained in:
parent
ae5200154b
commit
93df9b98d3
2 changed files with 4 additions and 4 deletions
|
@ -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 => ({
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue